Skip to content

Commit 1744e46

Browse files
authored
chain/ethereum: Fix ethabi type mismatch error msg (#3034)
Before the same parameter would be printed twice like: ``` Failed to call function "hashOrder_" of contract "WyvernExchange": type mismatch, token Array([Address(0x7be8076f4ea4a4ad08075c2508e481d6c946d12b), Address(0xb13c38273e001f0427c26f15b79b57db90606a91), Address(0x0000000000000000000000000000000000000000), Address(0x0000000000000000000000000000000000000000), Address(0x79986af15539de2db9a5086382daeda917a9cf0c), Address(0x0000000000000000000000000000000000000000), Address(0x0000000000000000000000000000000000000000)]) is not of kind Array([Address(0x7be8076f4ea4a4ad08075c2508e481d6c946d12b), Address(0xb13c38273e001f0427c26f15b79b57db90606a91), Address(0x0000000000000000000000000000000000000000), Address(0x0000000000000000000000000000000000000000), Address(0x79986af15539de2db9a5086382daeda917a9cf0c), Address(0x0000000000000000000000000000000000000000), Address(0x0000000000000000000000000000000000000000)]) ```
1 parent b710b90 commit 1744e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chain/ethereum/src/adapter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pub enum EthereumContractCallError {
4545
#[error("ABI error: {0}")]
4646
ABIError(ABIError),
4747
/// `Token` is not of expected `ParamType`
48-
#[error("type mismatch, token {0:?} is not of kind {0:?}")]
48+
#[error("type mismatch, token {0:?} is not of kind {1:?}")]
4949
TypeError(Token, ParamType),
5050
#[error("error encoding input call data: {0}")]
5151
EncodingError(ethabi::Error),

0 commit comments

Comments
 (0)