Skip to content

Commit 8db4325

Browse files
authored
Update PolkadotJS (#2267)
1 parent 3548a40 commit 8db4325

5 files changed

Lines changed: 113 additions & 105 deletions

File tree

centrifuge-js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"@ethersproject/bignumber": "^5.7.0",
3434
"@ethersproject/contracts": "^5.6.0",
3535
"@ethersproject/providers": "^5.6.0",
36-
"@polkadot/api": "~12.0.1",
36+
"@polkadot/api": "~12.1.1",
3737
"@polkadot/keyring": "^11.1.3",
38-
"@polkadot/types": "~12.0.1",
38+
"@polkadot/types": "~12.1.1",
3939
"@stablelib/blake2b": "^1.0.1",
4040
"clp-wasm": "^0.0.15",
4141
"decimal.js-light": "^2.5.1",

centrifuge-js/src/CentrifugeBase.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,23 @@ export class CentrifugeBase {
413413

414414
if (options?.signOnly) {
415415
return $checkBalance.pipe(
416-
switchMap(() => actualSubmittable.signAsync(signingAddress, { signer, era: options?.era }))
416+
switchMap(() =>
417+
actualSubmittable.signAsync(signingAddress, { signer, era: options?.era, withSignedTransaction: true })
418+
)
417419
)
418420
}
419421

420422
return (
421423
options?.sendOnly
422424
? actualSubmittable.send()
423425
: $checkBalance.pipe(
424-
switchMap(() => actualSubmittable.signAndSend(signingAddress, { signer, era: options?.era }))
426+
switchMap(() =>
427+
actualSubmittable.signAndSend(signingAddress, {
428+
signer,
429+
era: options?.era,
430+
withSignedTransaction: true,
431+
})
432+
)
425433
)
426434
).pipe(
427435
map((result) => {

centrifuge-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@finoa/finoa-connect-sdk": "^1.0.1",
5454
"@polkadot/extension-dapp": "~0.45.5",
5555
"@polkadot/react-identicon": "~3.1.4",
56-
"@polkadot/types": "~12.0.1",
56+
"@polkadot/types": "~12.1.1",
5757
"@subwallet/wallet-connect": "0.2.5",
5858
"@types/bn.js": "^5",
5959
"@walletconnect/ethereum-provider": "^2.12.2",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"typescript": "~5.3.3"
2626
},
2727
"dependencies": {
28-
"@polkadot/api": "~12.0.1",
29-
"@polkadot/types": "~12.0.1",
28+
"@polkadot/api": "~12.1.1",
29+
"@polkadot/types": "~12.1.1",
3030
"@polkadot/util-crypto": "^11.1.3",
3131
"@sendgrid/mail": "^7.7.0",
3232
"bn.js": "^5.2.1",

0 commit comments

Comments
 (0)