coblox / nectar

GNU General Public License v3.0
0 stars 1 forks source link

Ask Ethereum node for gas price #65

Closed luckysori closed 4 years ago

luckysori commented 4 years ago

We used to hard-code the gas price of transactions to 0 because it worked for a local development node (as proven by the swap execution integration test passing before these changes). Obviously, this wouldn't work in the real world. Using eth_gasPrice we ask the Ethereum node to give us a gas price that should be good enough.

This caused the swap execution integration test to fail, which was fixed by minting ether for Alice and Bob.