Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphql: add support for tx types and tx access lists #22491

Merged
merged 7 commits into from
Apr 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
graphql: use SignNewTx
  • Loading branch information
fjl authored Mar 23, 2021
commit c8f1e9e4b8ed157135ae00eb66840e223ee06f57
5 changes: 2 additions & 3 deletions graphql/graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,13 @@ func createGQLServiceWithTransactions(t *testing.T, stack *node.Node) {
}
signer := types.LatestSigner(ethConf.Genesis.Config)

legacyTx, _ := types.SignTx(types.NewTx(&types.LegacyTx{
legacyTx, _ := types.SignNewTx(key, signer, &types.LegacyTx{
Nonce: uint64(0),
To: &dad,
Value: big.NewInt(100),
Gas: 50000,
GasPrice: big.NewInt(1),
}), signer, key)

})
envelopTx, _ := types.SignNewTx(key, signer, &types.AccessListTx{
ChainID: ethConf.Genesis.Config.ChainID,
Nonce: uint64(1),
Expand Down