ethers-rs/ethers-contract/tests
Sebastian Martinez 9db36e59fb
fix: eip712 signing with ledger hw (#518)
* fix: eip712 signing with ledger hw

This commit fixes the way a EIP712 derived struct is sent to the
Ledger HW to obtain the signature.

It also checks if the Ledger ETH app is at least 1.6.0 since this
is a requirement.

* fix: apply cargo fmt

* fix: revert ledger eip712 test

* refactor: remove unused code

* test: add ledger eip712 test

* fix: cargo fmt

* fix: move the logic to app.rs

* feat: make sign_typed_data take a reference

* chore: ensure abigen is enabled in ledger tests

we need this to compile ethers-contract as a standalone package

* test: ensure that the ledger sig verifies

* test: pass foo_bar by ref

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-10-19 11:52:36 +03:00
..
common feat: function call enums EthCall macro and more (#517) 2021-10-18 13:28:38 +03:00
solidity-contracts derive-eip712: initial implementation of eip712 derive macro (#481) 2021-10-08 16:22:51 +01:00
abigen.rs feat: function call enums EthCall macro and more (#517) 2021-10-18 13:28:38 +03:00
contract.rs fix: eip712 signing with ledger hw (#518) 2021-10-19 11:52:36 +03:00