ethers-rs/ethers-contract
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
..
ethers-contract-abigen feat: function call enums EthCall macro and more (#517) 2021-10-18 13:28:38 +03:00
ethers-contract-derive feat: function call enums EthCall macro and more (#517) 2021-10-18 13:28:38 +03:00
src feat: function call enums EthCall macro and more (#517) 2021-10-18 13:28:38 +03:00
tests fix: eip712 signing with ledger hw (#518) 2021-10-19 11:52:36 +03:00
Cargo.toml chore(deps): bump thiserror from 1.0.29 to 1.0.30 (#500) 2021-10-11 15:42:55 +03:00