Skip to content

Commit 3ba2cc0

Browse files
authored
Merge pull request #1842 from jtobin/limit-asset-list
itest: limit asset lists when minting and asserting mints
2 parents 5b165ff + f07ce01 commit 3ba2cc0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

itest/assertions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,9 +2093,13 @@ func AssertAssetsMinted(t *testing.T, tapClient commands.RpcClientsBundle,
20932093
assetList []*taprpc.Asset
20942094
)
20952095

2096+
// List only the assets that were minted in the anchor transaction.
20962097
listRespConfirmed, err := tapClient.ListAssets(
20972098
ctxt, &taprpc.ListAssetRequest{
20982099
ScriptKeyType: allScriptKeysQuery,
2100+
AnchorOutpoint: &taprpc.OutPoint{
2101+
Txid: mintTXID[:],
2102+
},
20992103
},
21002104
)
21012105
require.NoError(t, err)

itest/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ func FinalizeBatchUnconfirmed(t *testing.T, minerClient *rpcclient.Client,
453453
ctxt, &taprpc.ListAssetRequest{
454454
IncludeUnconfirmedMints: true,
455455
ScriptKeyType: allScriptKeysQuery,
456+
AnchorOutpoint: &taprpc.OutPoint{
457+
Txid: hashes[0][:],
458+
},
456459
},
457460
)
458461
require.NoError(t, err)

0 commit comments

Comments
 (0)