diff --git a/electron/tapd/tapdProxyServer.ts b/electron/tapd/tapdProxyServer.ts index 62b5ed9c90..5ab4423561 100644 --- a/electron/tapd/tapdProxyServer.ts +++ b/electron/tapd/tapdProxyServer.ts @@ -89,7 +89,7 @@ const decodeAddress = async (args: { const assetRoots = async (args: { node: TapdNode }): Promise => { const { universe } = await getRpc(args.node); - return await universe.assetRoots(); + return await universe.assetRoots({ withAmountsById: true }); }; const assetLeaves = async (args: { diff --git a/src/lib/tap/tapd/tapdService.ts b/src/lib/tap/tapd/tapdService.ts index 4525b78840..a6f3d0202f 100644 --- a/src/lib/tap/tapd/tapdService.ts +++ b/src/lib/tap/tapd/tapdService.ts @@ -76,7 +76,7 @@ class TapdService implements TapService { return { id: genesis.assetId.toString(), name: genesis.name, - type: asset.assetType, + type: genesis.assetType, amount: asset.amount, genesisPoint: genesis.genesisPoint, anchorOutpoint: anchor.anchorOutpoint, @@ -95,7 +95,7 @@ class TapdService implements TapService { balances.push({ id, name: genesis.name, - type: asset.assetType, + type: genesis.assetType, balance: asset.balance, genesisPoint: genesis.genesisPoint, }); diff --git a/src/shared/tapdDefaults.ts b/src/shared/tapdDefaults.ts index fa61bf24b5..67a4fe32c9 100644 --- a/src/shared/tapdDefaults.ts +++ b/src/shared/tapdDefaults.ts @@ -27,6 +27,7 @@ export const defaultTapdListBalances = ( export const defaultTapdMintAsset = (): MintAssetResponse => ({ pendingBatch: { + batchTxid: '', batchKey: Buffer.from(''), assets: [], state: 'BATCH_STATE_PEDNING', @@ -37,6 +38,7 @@ export const defaultTapdFinalizeBatch = ( value: Partial, ): FinalizeBatchResponse => ({ batch: { + batchTxid: '', batchKey: Buffer.from(''), assets: [], state: 'BATCH_STATE_FINALIZED',