Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(polkadot): upgrade to v1.2.0 #999

Open
wants to merge 11 commits into
base: development
Choose a base branch
from
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