Skip to content

Conversation

@MrChico
Copy link
Member

@MrChico MrChico commented Sep 17, 2021

Description

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

@MrChico MrChico marked this pull request as ready for review September 17, 2021 09:30
Copy link
Contributor

@d-xo d-xo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't really understand why the fix works, but the test passes so lgtm I guess

tx = types.NewTx(&types.DynamicFeeTx{
Nonce: nonce,
To: &common.Address{},
To: nil,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious what the difference is

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on @hexonaut err report I'm guessing common.Address{} is the zero address, which is not the same as not having an address which is needed for creates. There was a comment in geth that led me to believe this is the rught way to do it, and it seems to work in the test

Copy link
Contributor

@d-xo d-xo Sep 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok yeah. I can also see this reading through the signer code in geth (e.g. here).

@MrChico MrChico merged commit 5cd96ed into master Sep 20, 2021
@MrChico MrChico deleted the 1559create branch September 20, 2021 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants