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.
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.