Skip to content

Commit 9226501

Browse files
committed
chain/ethereum: Fix retval import causing rustfmt issues
1 parent 4211416 commit 9226501

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

chain/ethereum/src/ethereum_adapter.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,9 +1635,8 @@ impl EthereumAdapterTrait for EthereumAdapter {
16351635
source,
16361636
req: _,
16371637
} = resp;
1638-
use call::Retval::*;
16391638
match retval {
1640-
Value(output) => match call.function.abi_decode_output(&output) {
1639+
call::Retval::Value(output) => match call.function.abi_decode_output(&output) {
16411640
Ok(tokens) => (Some(tokens), source),
16421641
Err(e) => {
16431642
// Decode failures are reverts. The reasoning is that if Solidity fails to
@@ -1647,7 +1646,7 @@ impl EthereumAdapterTrait for EthereumAdapter {
16471646
(None, call::Source::Rpc)
16481647
}
16491648
},
1650-
Null => {
1649+
call::Retval::Null => {
16511650
// We got a `0x` response. For old Geth, this can mean a revert. It can also be
16521651
// that the contract actually returned an empty response. A view call is meant
16531652
// to return something, so we treat empty responses the same as reverts.

0 commit comments

Comments
 (0)