Skip to content

Commit

Permalink
fix: add executeMetaTxn contract call name when get actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vaigay committed Oct 17, 2024
1 parent 7627ccf commit 0fc4b0f
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 0fc4b0f

Please sign in to comment.