Skip to content

Commit 6e5570d

Browse files
yihuangclaudehappy-otter
committed
fix: update factory to use abi.Method from CallArgs
Update ExecuteContractCall and QueryContract to use callArgs.Method instead of callArgs directly to match the new GenerateContractCallArgs signature that expects abi.Method interface. Co-Authored-By: Claude <[email protected]> Co-Authored-By: Happy <[email protected]>
1 parent 2ac484f commit 6e5570d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testutil/integration/evm/factory/broadcast.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (tf *IntegrationTxFactory) ExecuteEthTx(
4747

4848
// ExecuteContractCall executes a contract call with the provided private key.
4949
func (tf *IntegrationTxFactory) ExecuteContractCall(privKey cryptotypes.PrivKey, txArgs evmtypes.EvmTxArgs, callArgs testutiltypes.CallArgs) (abcitypes.ExecTxResult, error) {
50-
input, err := GenerateContractCallArgs(callArgs)
50+
input, err := GenerateContractCallArgs(callArgs.Method)
5151
if err != nil {
5252
return abcitypes.ExecTxResult{}, errorsmod.Wrap(err, "failed to generate contract call args")
5353
}
@@ -110,7 +110,7 @@ func (tf *IntegrationTxFactory) QueryContract(
110110
callArgs testutiltypes.CallArgs,
111111
gasCap uint64,
112112
) (*evmtypes.MsgEthereumTxResponse, error) {
113-
input, err := GenerateContractCallArgs(callArgs)
113+
input, err := GenerateContractCallArgs(callArgs.Method)
114114
if err != nil {
115115
return nil, errorsmod.Wrap(err, "failed to generate contract call args")
116116
}

0 commit comments

Comments
 (0)