Skip to content

Commit

Permalink
add ChargeAssetTxPayment extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Robiquet committed Jul 28, 2023
1 parent 1401154 commit 8b3afb7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/sdk/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,18 @@ export const createRpcContext = async <MS extends MetadataStorage<any>>(
debug(`connecting to rpc: ${config.provider}`, config)

const provider = new WsProvider(config.provider)
const api = await ApiPromise.create({ ...options({ provider }) })
const api = await ApiPromise.create({
...options({ provider }),
signedExtensions: {
ChargeAssetTxPayment: {
extrinsic: {
tip: 'Option<Compact<Balance>>',
assetId: 'Option<CurrencyId>',
},
payload: {},
},
},
})

debug(`connected to node rpc`, { ...config, color: '#36a4e3' })

Expand Down

0 comments on commit 8b3afb7

Please sign in to comment.