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 @@ -1635,9 +1635,8 @@ impl EthereumAdapterTrait for EthereumAdapter {
1635
1635
source,
1636
1636
req : _,
1637
1637
} = resp;
1638
- use call:: Retval :: * ;
1639
1638
match retval {
1640
- Value ( output) => match call. function . abi_decode_output ( & output) {
1639
+ call :: Retval :: Value ( output) => match call. function . abi_decode_output ( & output) {
1641
1640
Ok ( tokens) => ( Some ( tokens) , source) ,
1642
1641
Err ( e) => {
1643
1642
// Decode failures are reverts. The reasoning is that if Solidity fails to
@@ -1647,7 +1646,7 @@ impl EthereumAdapterTrait for EthereumAdapter {
1647
1646
( None , call:: Source :: Rpc )
1648
1647
}
1649
1648
} ,
1650
- Null => {
1649
+ call :: Retval :: Null => {
1651
1650
// We got a `0x` response. For old Geth, this can mean a revert. It can also be
1652
1651
// that the contract actually returned an empty response. A view call is meant
1653
1652
// to return something, so we treat empty responses the same as reverts.
You can’t perform that action at this time.
0 commit comments