From 0fc4b0f5a2a5ff64e89865b289fc813541741921 Mon Sep 17 00:00:00 2001 From: hai pham Date: Thu, 17 Oct 2024 10:15:05 +0700 Subject: [PATCH] fix: add executeMetaTxn contract call name when get actions --- pkg/parser/zxrfqv3/parser.go | 2 +- pkg/parser/zxrfqv3/settler_action.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/parser/zxrfqv3/parser.go b/pkg/parser/zxrfqv3/parser.go index 25fffa7..039ff08 100644 --- a/pkg/parser/zxrfqv3/parser.go +++ b/pkg/parser/zxrfqv3/parser.go @@ -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) diff --git a/pkg/parser/zxrfqv3/settler_action.go b/pkg/parser/zxrfqv3/settler_action.go index 9e0216d..099cba0 100644 --- a/pkg/parser/zxrfqv3/settler_action.go +++ b/pkg/parser/zxrfqv3/settler_action.go @@ -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