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

add ChargeAssetTxPayment to SignedExtensions #3668

Merged

Conversation

apopiak
Copy link
Contributor

@apopiak apopiak commented Jun 17, 2021

Note: not tested, yet.

@apopiak
Copy link
Contributor Author

apopiak commented Jun 17, 2021

related to paritytech/cumulus#488

import { substrate } from './substrate';

// A mapping of the known signed extensions to the extra fields that they contain. Unlike in the actual extensions,
// we define the extra fields not as a Tuple, but rather as a struct so they can be named. These will be expanded
// into the various fields when added to the payload (we only support V4 onwards with these, V3 and earlier are
// deemed fixed and non-changeable)
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
Copy link
Member

Choose a reason for hiding this comment

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

Weird that this is needed, I cannot spot why.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe my vscode picked up a weird default config for eslint?

Copy link
Member

@jacogr jacogr left a comment

Choose a reason for hiding this comment

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

lgtm.

Aligns with the Rust code. so going to merge this one as well (doesn't break anything elsewhere and did compare against the original). If there are adjustments, can make them after the fact.

@jacogr jacogr merged commit 1de533c into polkadot-js:master Jun 19, 2021
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jun 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants