Skip to content

Commit

Permalink
Merge pull request #84 from KyberNetwork/fix/zxv3-decode-contract-name
Browse files Browse the repository at this point in the history
fix: add executeMetaTxn contract call name when get actions
  • Loading branch information
vaigay authored Oct 17, 2024
2 parents 7436908 + 0fc4b0f commit 76ee75c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/parser/zxrfqv3/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func (p *Parser) getExecuteActionData(contractAddress common.Address, callFrame
if err != nil {
return nil, err
}
if contractCall.Name == executeFunctionName {
if contractCall.Name == executeFunctionName || contractCall.Name == executeMetaTxnFunctionName {
for _, param := range contractCall.Params {
if param.Name == actionParamName {
data, ok := param.Value.([][]byte)
Expand Down
5 changes: 3 additions & 2 deletions pkg/parser/zxrfqv3/settler_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ const (
rfqVIPName FunctionName = "RFQ_VIP"
rfqName FunctionName = "RFQ"

executeFunctionName = "execute"
actionParamName = "actions"
executeFunctionName = "execute"
executeMetaTxnFunctionName = "executeMetaTxn"
actionParamName = "actions"
)

var mSettlerActionName map[FunctionName]FunctionABI
Expand Down

0 comments on commit 76ee75c

Please sign in to comment.