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 {
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.
You can’t perform that action at this time.
0 commit comments