Commit 1448f0ef authored by Litian's avatar Litian Committed by 33cn

fix bug #94

parent b8a44381
...@@ -128,7 +128,8 @@ func createEvmTx(param *CreateCallTx) (*types.Transaction, error) { ...@@ -128,7 +128,8 @@ func createEvmTx(param *CreateCallTx) (*types.Transaction, error) {
// Abi数据和二进制代码必须指定一个,优先判断ABI // Abi数据和二进制代码必须指定一个,优先判断ABI
if len(param.Abi) > 0 { if len(param.Abi) > 0 {
action.Abi = strings.TrimSpace(param.Abi) action.Abi = strings.TrimSpace(param.Abi)
} else { }
if len(param.Code) > 0 {
bCode, err := common.FromHex(param.Code) bCode, err := common.FromHex(param.Code)
if err != nil { if err != nil {
elog.Error("create evm Tx error, code is invalid", "param.Code", param.Code) elog.Error("create evm Tx error, code is invalid", "param.Code", param.Code)
......
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