-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature/transaction extensions #101
base: develop
Are you sure you want to change the base?
Conversation
@@ -48,88 +81,134 @@ object Extrinsic : Type<Extrinsic.Instance>("ExtrinsicsDecoder") { | |||
): Instance { | |||
val length = compactInt.read(scaleCodecReader) |
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.
It looks like it's not being used anywhere. Is this needed just to be able to read the following values from the reader? What do you think about some kind of cosmetic extension, like skip()
to skip unnecessary values?
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.
Yeah I think we can create something like ScaleCodecReader.skip(dataType)
to skip complex things, like compact in this example
|
||
val batchModule = runtime.metadata.module("Utility") | ||
|
||
val batchFunctionName = when (batchMode) { |
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.
Maybe extract it as enum extension?
Implements paritytech/polkadot-sdk#3685 in backward compatible manner.
Changes summary of v5 format:
GeneralTransaction
. It does not have a hardcoded signature but only has transaction extensions and the call. Signed can be performed using newVerifyMultiSignature
transaction extensionsign call + extensions
tosign current available InheritedImplication
, which is a generalized approach introduced in general transactions. You can find more info in the correponding classes' documentation