ethers-rs/ethers-middleware/tests
Dan Cline 1d14f9d26e
Ensure a consistent chain ID between a signer and provider in SignerMiddleware (#1095)
* feat(middleware): fetch chainid from middleware

Require SignerMiddleware to fetch the inner middleware's to set for the
signer. SignerMiddleware now requires an instantiated middleware with
an accessible get_chainid method.

* ci: update ganache

newer ganache version is needed to specify the ganache provider chain id
in tests

* set SignerMiddleware constructor return to result

* create new method for pulling chainid

* add consistent chainid CHANGELOG entry

* remove awaits

* switch test_derive_eip712 to use consistent signer

 * remove gas estimation equality assert in deploy_and_call_contract -
   updated version of ganache no longer returns the same value for gas
   estimation and gas_used

* revert with_signer to non-async non-result

* cargo fmt

* expand SignerMiddleware::new comment

* remove doc indent
2022-04-10 10:55:30 -07:00
..
solidity-contracts Fix tests failing on solc 0.8.0 or above (#310) 2021-06-07 19:32:41 +03:00
gas_escalator.rs feat: rotate infura keys for ws 2022-03-13 10:11:27 -07:00
gas_oracle.rs Ensure a consistent chain ID between a signer and provider in SignerMiddleware (#1095) 2022-04-10 10:55:30 -07:00
nonce_manager.rs fix(core/TypedTransaction): eip1559 gas price should be max_fee_per_gas (#1062) 2022-03-19 09:41:03 -07:00
signer.rs Ensure a consistent chain ID between a signer and provider in SignerMiddleware (#1095) 2022-04-10 10:55:30 -07:00
stack.rs chore: add rustfmt.toml (#537) 2021-10-29 14:29:35 +02:00
transformer.rs feat(solc): add support for library linking (#656) 2021-12-08 02:38:29 +02:00