Commit fb2d4071 authored by 轻松's avatar 轻松

update evmxgo test

parent 7e705ce3
......@@ -133,7 +133,7 @@ func init() {
}
func getprivkey(key string) crypto.PrivKey {
cr, err := crypto.New(types.GetSignName("", types.SECP256K1))
cr, err := crypto.Load(types.GetSignName("", types.SECP256K1), -1)
if err != nil {
panic(err)
}
......@@ -149,7 +149,7 @@ func getprivkey(key string) crypto.PrivKey {
}
func genaddress() (string, crypto.PrivKey) {
cr, err := crypto.New(types.GetSignName("", types.SECP256K1))
cr, err := crypto.Load(types.GetSignName("", types.SECP256K1), -1)
if err != nil {
panic(err)
}
......@@ -187,7 +187,7 @@ func waitTx(hash []byte) bool {
func signTx(tx *types.Transaction, hexPrivKey string) (*types.Transaction, error) {
signType := types.SECP256K1
c, err := crypto.New(types.GetSignName(pty.EvmxgoX, signType))
c, err := crypto.Load(types.GetSignName(pty.EvmxgoX, signType), -1)
if err != nil {
return tx, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment