Skip to content

Commit

Permalink
Fix estimate_gas (paritytech#297)
Browse files Browse the repository at this point in the history
* fix estimate_gas

* format

* format

Co-authored-by: Wei Tang <accounts@that.world>

Co-authored-by: Wei Tang <accounts@that.world>
  • Loading branch information
zjb0807 and sorpaas authored Feb 25, 2021
1 parent 8ce032e commit 1e092f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/rpc/src/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,10 @@ impl<B, C, P, CT, BE, H: ExHashT> EthApiT for EthApi<B, C, P, CT, BE, H> where
Err(_) => {
lower = mid;
mid = (lower + upper + 1) / 2;

if mid == lower {
break;
}
}
}
}
Expand Down

0 comments on commit 1e092f7

Please sign in to comment.