Skip to content

Commit 51b184e

Browse files
committed
chain/ethereum: Fix retval import causing rustfmt issues
1 parent 3349979 commit 51b184e

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
@@ -1650,9 +1650,8 @@ impl EthereumAdapterTrait for EthereumAdapter {
16501650
source,
16511651
req: _,
16521652
} = resp;
1653-
use call::Retval::*;
16541653
match retval {
1655-
Value(output) => match call.function.abi_decode_output(&output) {
1654+
call::Retval::Value(output) => match call.function.abi_decode_output(&output) {
16561655
Ok(tokens) => (Some(tokens), source),
16571656
Err(e) => {
16581657
// Decode failures are reverts. The reasoning is that if Solidity fails to
@@ -1662,7 +1661,7 @@ impl EthereumAdapterTrait for EthereumAdapter {
16621661
(None, call::Source::Rpc)
16631662
}
16641663
},
1665-
Null => {
1664+
call::Retval::Null => {
16661665
// We got a `0x` response. For old Geth, this can mean a revert. It can also be
16671666
// that the contract actually returned an empty response. A view call is meant
16681667
// to return something, so we treat empty responses the same as reverts.

0 commit comments

Comments
 (0)