aboutsummaryrefslogblamecommitdiffstats
path: root/tests/helper/common.go
blob: 21ea2261ff802c17a800af5deac84cfb6d48e261 (plain) (tree)
1
2
3
4
5
6
7
8
9

              
                                               

                               
                            


                         
                                  
 
package helper

import "github.com/ethereum/go-ethereum/common"

func FromHex(h string) []byte {
    if common.IsHex(h) {
        h = h[2:]
    }

    return common.Hex2Bytes(h)
}