在我的 webappbalances.transfer
中抛出错误但staking.bondExtra
按预期工作。它连接到westend网络。
错误:
错误:createType(Call):: Call: 解码失败 balances.transfer:: Struct: 参数失败:{"dest":"LookupSource","value":"Compact<Balance>"}:: Struct: 失败: Compact<Balance>:: 断言失败
代码片段:
transactions = []
transactions.push(
api.tx.staking.bondExtra(rawAmount),
api.tx.balances.transfer(Address, commission);
);
const bondExtraFee = await api.tx.utility.batch(transactions).paymentInfo(substrateStashId);
return bondExtraFee.partialFee.toNumber();