-
Notifications
You must be signed in to change notification settings - Fork 1
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
docs: create commonTransactionParameters
to hold parameters that are common between all transaction types
#209
Conversation
signerKeys
to explicitly state when additional keys should sign a transactionsignerKeys
to explicitly state when additional keys should sign an AccountCreateTransaction
… transaction Signed-off-by: Rob Walworth <[email protected]>
0dde811
to
0e65def
Compare
…_PRIVATE_KEY or VALID_PUBLIC_KEY Signed-off-by: Rob Walworth <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gg @rwalworth
…t are common between all transactions Signed-off-by: Rob Walworth <[email protected]>
signerKeys
to explicitly state when additional keys should sign an AccountCreateTransaction
commonTransactionParameters
to hold parameters that are common between all transaction types
Signed-off-by: Rob Walworth <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it makes sense, although would like to have a review here from other team members as well.
@rwalworth will |
Yes, the |
- UpdatesignerKey
to a list that will allow for multiple additional signatures of a transaction- Explicitly usesignerKeys
to provide any additional signatures to a transaction. The transaction will not be signed (except by the fee payer) ifsignerKeys
is empty.While working on #216, I noticed an issue that would need to be addressed at some point: common parameters for all transactions. I decided to hijack this PR with a proposed solution since it was already addressing an issue that was tangent to it. Basically in order to allow ourselves to test all fields for a transaction (most notably, the parameters that are common to all transactions), we would need to add all of these parameters
This PR now adds the specification for an additional JSON parameter object that can be shared between transactions,
commonTransactionParams
. This will allow every transaction to hold common parameters in one defined object, as well as hold signatures (which was this PR's original intent).signerKey
is nowsigners
, and is a list contained incommonTransactionParams
. The transaction will now not be signed (except by the fee payer established with thesetOperator
method) ifcommonTransactionParams.signers
is empty.Related issue(s):
Fixes #208