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

evm: Pass value param to the txm #13602

Merged
merged 4 commits into from
Jun 24, 2024
Merged

evm: Pass value param to the txm #13602

merged 4 commits into from
Jun 24, 2024

Conversation

nickcorin
Copy link
Contributor

Ticket

Requires Dependencies

Resolves Dependencies

@@ -111,6 +111,11 @@ func (w *chainWriter) SubmitTransaction(ctx context.Context, contract, method st
checker.CheckerType = txmgrtypes.TransmitCheckerType(methodConfig.Checker)
}

v := big.NewInt(0)
Copy link
Contributor

Choose a reason for hiding this comment

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

why is txmgr accepting big.Int without a pointer 😫

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're busy discussing whether it's in scope to edit this too along with the other big.Int -> *big.Int changes we're making.

Copy link
Contributor Author

@nickcorin nickcorin Jun 18, 2024

Choose a reason for hiding this comment

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

But there is an argument that nil is not a valid tx value and using big.Int helps prevent accidental panics at the cost of being a little ugly.

ilija42
ilija42 previously approved these changes Jun 18, 2024
Copy link
Contributor

@silaslenihan silaslenihan left a comment

Choose a reason for hiding this comment

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

LGTM!

@ilija42 ilija42 added this pull request to the merge queue Jun 24, 2024
@ilija42 ilija42 removed this pull request from the merge queue due to a manual request Jun 24, 2024
@ilija42 ilija42 added this pull request to the merge queue Jun 24, 2024
Merged via the queue into develop with commit fc3a291 Jun 24, 2024
113 checks passed
@ilija42 ilija42 deleted the fix/use-transaction-value branch June 24, 2024 16:21
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.

4 participants