Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/tfchain-client-go/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (s *Substrate) Transfer(identity Identity, amount uint64, destination Accou
}
bal := big.NewInt(int64(amount))

c, err := types.NewCall(meta, "Balances.transfer", dest, types.NewUCompact(bal))
c, err := types.NewCall(meta, "Balances.transfer_allow_death", dest, types.NewUCompact(bal))
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion clients/tfchain-client-js/lib/balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function transfer (self, address, amount, callback) {
throw Error('You must pass a valid numeric amount')
}

const transfer = self.api.tx.balances.transfer(address, amount)
const transfer = self.api.tx.balances.transferAllowDeath(address, amount)

const nonce = await self.api.rpc.system.accountNextIndex(self.address)
return transfer.signAndSend(self.key, { nonce }, callback)
Expand Down
Loading
Loading