Skip to content

Commit

Permalink
Use NO_METHO_SIG when method sig is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
songge-cb committed Jul 18, 2024
1 parent 60f99ea commit 846d6e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/construction/contract_call_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 846d6e6

Please sign in to comment.