From 846d6e6a465b8a981c688666a17209a50cad752d Mon Sep 17 00:00:00 2001 From: Song Ge Date: Wed, 17 Jul 2024 22:05:08 -0700 Subject: [PATCH] Use NO_METHO_SIG when method sig is not needed --- services/construction/contract_call_data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/construction/contract_call_data.go b/services/construction/contract_call_data.go index 5d845ca..d2e6b29 100644 --- a/services/construction/contract_call_data.go +++ b/services/construction/contract_call_data.go @@ -38,7 +38,7 @@ func ConstructContractCallDataGeneric(methodSig string, methodArgs interface{}) return nil, err } - // preprocess method args + // preprocess method args for fallback pattern contract call args, err := preprocessArgs(methodSig, methodArgs) if err != nil { return nil, err @@ -227,7 +227,7 @@ func contractCallMethodID(methodSig string) ([]byte, error) { } return result, nil }*/ - if methodSig == "" { + if methodSig == "" || methodSig == "NO_METHOD_SIG" { // contract call without method signature (fallback pattern) return []byte{}, nil }