accounts/abi/bind: allow specifying signer on transactOpts (#21356)
This commit enables users to specify which signer they want to use while creating their transactOpts. Previously all contract interactions used the homestead signer. Now a user can specify whether they want to sign with homestead or EIP155 and specify the chainID which adds another layer of security. Closes #16484
Showing
- accounts/abi/bind/auth.go 85 additions, 7 deletionsaccounts/abi/bind/auth.go
- accounts/abi/bind/backends/simulated.go 2 additions, 0 deletionsaccounts/abi/bind/backends/simulated.go
- accounts/abi/bind/backends/simulated_test.go 6 additions, 6 deletionsaccounts/abi/bind/backends/simulated_test.go
- accounts/abi/bind/base.go 2 additions, 2 deletionsaccounts/abi/bind/base.go
- accounts/abi/bind/bind_test.go 17 additions, 17 deletionsaccounts/abi/bind/bind_test.go
- contracts/checkpointoracle/oracle_test.go 1 addition, 1 deletioncontracts/checkpointoracle/oracle_test.go
- les/sync_test.go 4 additions, 2 deletionsles/sync_test.go
- les/test_helper.go 2 additions, 1 deletionles/test_helper.go
- mobile/bind.go 8 additions, 4 deletionsmobile/bind.go
Loading
Please register or sign in to comment