Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
add change legacetx as default evm to accesslist tx
Browse files Browse the repository at this point in the history
  • Loading branch information
P1sar committed Jul 8, 2021
1 parent 5a65432 commit 22a777e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chains/evm/voter/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ func (p *Proposal) Execute(client ChainClient) error {
if err != nil {
return err
}
tx := evmtransaction.NewTransaction(n.Uint64(), p.BridgeAddress, big.NewInt(0), gasLimit, gp, input)
cid, err := client.ChainID(context.Background())
if err != nil {
return err
}
tx := evmtransaction.NewTransaction(cid, n.Uint64(), p.BridgeAddress, big.NewInt(0), gasLimit, gp, input)
h, err := client.SignAndSendTransaction(context.TODO(), tx)
if err != nil {
return err
Expand Down

0 comments on commit 22a777e

Please sign in to comment.