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

determines raw tx sender from tx fields #4970

Merged
merged 7 commits into from
May 21, 2024

Conversation

hughy
Copy link
Contributor

@hughy hughy commented May 20, 2024

Summary

uses the spends, outputs, and/or mints in a raw transaction to determine which account to use to post the transaction.

deprecates the account flag from the 'wallet:post' CLI command

deprecates the account request parameter from the 'wallet/postTransaction' RPC

Testing Plan

manual testing

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[X] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

uses the spends, outputs, and/or mints in a raw transaction to determine which
account to use to post the transaction.

deprecates the account flag from the 'wallet:post' CLI command

deprecates the account request parameter from the 'wallet/postTransaction' RPC
@hughy hughy requested a review from a team as a code owner May 20, 2024 19:58
correctly loads account by public address
} else if (this.outputs.length > 0) {
return this.outputs[0].note.sender()
} else if (this.mints.length > 0) {
return this.mints[0].creator
Copy link
Contributor

Choose a reason for hiding this comment

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

This should technically be .owner, but I see that RawTransaction lacks that information right now. We'll need to tackle that if/when ownership v2 comes around. No action needed here, just mentioning it

@hughy hughy merged commit ca60831 into staging May 21, 2024
8 of 9 checks passed
@hughy hughy deleted the feat/hughy/ifl-2574/post-tx-account branch May 21, 2024 22: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.

2 participants