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

Implement SubmitSignedTransaction in ChainWriter #13325

Closed
wants to merge 12 commits into from

Conversation

nickcorin
Copy link
Contributor

@nickcorin nickcorin commented May 24, 2024

Requires smartcontractkit/chainlink-common#541

  • evm: Add a stub chainwriter impl
  • evm: Fix config parameter
  • evm: Change the chainwriter receiver name
  • evm: Remove the chain writer interface to reference chainlink-common
  • evm: Update common dep, and fix signature
  • go.sum: Run gomodtidy
  • .changeset: Add a changeset
  • evm: Pseudo-implement the submit transaction method on chainwriter


req := evmtxmgr.TxRequest{
FromAddress: w.config.FromAddress().Address(),
ToAddress: w.config.ForwarderAddress().Address(),
Copy link
Contributor

Choose a reason for hiding this comment

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

FromAddress/ToAddress should be a parameter that's passed in -- both of these values are being sourced from keystone/workflow specific config (that's incorrectly labeled as ChainWriter right now)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yeah this should be the toAddress passed into the method. The value that's now being treated as toAddress (the receiver address) will simply be a part of the input args:

inputs := []any{receiverAddress, report, signatures}
CreateTransaction(ctx, inputs, workflowConfig.ForwarderAddress().Address(), ...)

@archseer archseer closed this Jun 25, 2024
@archseer archseer deleted the feat/implement-submit-tx branch June 25, 2024 07:56
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.

2 participants