File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1650,9 +1650,8 @@ impl EthereumAdapterTrait for EthereumAdapter {
1650
1650
source,
1651
1651
req : _,
1652
1652
} = resp;
1653
- use call:: Retval :: * ;
1654
1653
match retval {
1655
- Value ( output) => match call. function . abi_decode_output ( & output) {
1654
+ call :: Retval :: Value ( output) => match call. function . abi_decode_output ( & output) {
1656
1655
Ok ( tokens) => ( Some ( tokens) , source) ,
1657
1656
Err ( e) => {
1658
1657
// Decode failures are reverts. The reasoning is that if Solidity fails to
@@ -1662,7 +1661,7 @@ impl EthereumAdapterTrait for EthereumAdapter {
1662
1661
( None , call:: Source :: Rpc )
1663
1662
}
1664
1663
} ,
1665
- Null => {
1664
+ call :: Retval :: Null => {
1666
1665
// We got a `0x` response. For old Geth, this can mean a revert. It can also be
1667
1666
// that the contract actually returned an empty response. A view call is meant
1668
1667
// to return something, so we treat empty responses the same as reverts.
You can’t perform that action at this time.
0 commit comments