将资产托盘集成到节点模板派生链中时导致错误签名的类型问题

types issue resulting in bad signature when integrating assets pallet into node-template derived chain

我认为,在将 pallet_assets 实施到节点模板时,类型有问题。尝试应用 https://github.com/paritytech/substrate/tree/efd262f1a791be0a7986b25bd302338a590b46d3/frame/assets#simple-code-snippet 中的总体思路时 见 -> https://github.com/Greenetwork/BLX_chain/blob/1a2f1f0f22f72c1795ff5900a62c8ccee69dbc23/pallets/allocator/src/lib.rs#L126 但包括 atokens: T::Balance 会导致错误的签名错误。我在前端缺少某种类型吗?我试过 "atoken" : "Balance" 没有运气

pallet_assets的balance is not the same as balances's balance

"atoken" : "Balance" 自定义类型定义不正确。 atoken 是变量而不是类型。

我将pallet_assets的余额重命名为balance1并在types.json

中使用了"Balance1": "u64",