Skip to content

Commit

Permalink
fix(idea/frontend): use transferAllowDeath instead of transfer me…
Browse files Browse the repository at this point in the history
…thod (#1541)
  • Loading branch information
osipov-mit authored May 15, 2024
1 parent a1a3f0f commit 548cd51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions idea/frontend/src/hooks/useBalanceTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ const useBalanceTransfer = () => {

const { signSource, keepAlive, onSuccess } = options || {};

// TODO: replace to api.balance.transfer after api update to support string value
const extrinsic = keepAlive ? api.tx.balances.transferKeepAlive(to, value) : api.tx.balances.transfer(to, value);
const extrinsic = keepAlive
? api.tx.balances.transferKeepAlive(to, value)
: api.tx.balances.transferAllowDeath(to, value);

if (signSource) {
web3FromSource(signSource).then(({ signer }) =>
Expand Down

0 comments on commit 548cd51

Please sign in to comment.