Skip to content

Commit

Permalink
Update PolkadotJS (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser authored Jul 8, 2024
1 parent 3548a40 commit 8db4325
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 105 deletions.
4 changes: 2 additions & 2 deletions centrifuge-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/contracts": "^5.6.0",
"@ethersproject/providers": "^5.6.0",
"@polkadot/api": "~12.0.1",
"@polkadot/api": "~12.1.1",
"@polkadot/keyring": "^11.1.3",
"@polkadot/types": "~12.0.1",
"@polkadot/types": "~12.1.1",
"@stablelib/blake2b": "^1.0.1",
"clp-wasm": "^0.0.15",
"decimal.js-light": "^2.5.1",
Expand Down
12 changes: 10 additions & 2 deletions centrifuge-js/src/CentrifugeBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,15 +413,23 @@ export class CentrifugeBase {

if (options?.signOnly) {
return $checkBalance.pipe(
switchMap(() => actualSubmittable.signAsync(signingAddress, { signer, era: options?.era }))
switchMap(() =>
actualSubmittable.signAsync(signingAddress, { signer, era: options?.era, withSignedTransaction: true })
)
)
}

return (
options?.sendOnly
? actualSubmittable.send()
: $checkBalance.pipe(
switchMap(() => actualSubmittable.signAndSend(signingAddress, { signer, era: options?.era }))
switchMap(() =>
actualSubmittable.signAndSend(signingAddress, {
signer,
era: options?.era,
withSignedTransaction: true,
})
)
)
).pipe(
map((result) => {
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@finoa/finoa-connect-sdk": "^1.0.1",
"@polkadot/extension-dapp": "~0.45.5",
"@polkadot/react-identicon": "~3.1.4",
"@polkadot/types": "~12.0.1",
"@polkadot/types": "~12.1.1",
"@subwallet/wallet-connect": "0.2.5",
"@types/bn.js": "^5",
"@walletconnect/ethereum-provider": "^2.12.2",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"typescript": "~5.3.3"
},
"dependencies": {
"@polkadot/api": "~12.0.1",
"@polkadot/types": "~12.0.1",
"@polkadot/api": "~12.1.1",
"@polkadot/types": "~12.1.1",
"@polkadot/util-crypto": "^11.1.3",
"@sendgrid/mail": "^7.7.0",
"bn.js": "^5.2.1",
Expand Down
Loading

0 comments on commit 8db4325

Please sign in to comment.