@@ -300,7 +300,7 @@ func TestUniverseIssuanceProofs(t *testing.T) {
300
300
targetKey := testLeaf .LeafKey
301
301
leaf := testLeaf .Leaf
302
302
303
- issuanceProof , err := baseUniverse .RegisterIssuance (
303
+ issuanceProof , err := baseUniverse .UpsertProofLeaf (
304
304
ctx , targetKey , & leaf , nil ,
305
305
)
306
306
require .NoError (t , err )
@@ -406,7 +406,7 @@ func TestUniverseIssuanceProofs(t *testing.T) {
406
406
testLeaf .Leaf .RawProof = randProofBytes
407
407
408
408
targetKey := testLeaf .LeafKey
409
- issuanceProof , err := baseUniverse .RegisterIssuance (
409
+ issuanceProof , err := baseUniverse .UpsertProofLeaf (
410
410
ctx , targetKey , & testLeaf .Leaf , nil ,
411
411
)
412
412
require .NoError (t , err )
@@ -476,7 +476,7 @@ func TestUniverseMetaBlob(t *testing.T) {
476
476
targetKey := randLeafKey (t )
477
477
leaf := randMintingLeaf (t , assetGen , id .GroupKey )
478
478
479
- _ , err := baseUniverse .RegisterIssuance (ctx , targetKey , & leaf , meta )
479
+ _ , err := baseUniverse .UpsertProofLeaf (ctx , targetKey , & leaf , meta )
480
480
require .NoError (t , err )
481
481
482
482
// We should be able to fetch the leaf based on the base key we used
@@ -503,7 +503,7 @@ func insertRandLeaf(t *testing.T, ctx context.Context, tree *BaseUniverseTree,
503
503
targetKey := randLeafKey (t )
504
504
leaf := randMintingLeaf (t , targetGen , tree .id .GroupKey )
505
505
506
- return tree .RegisterIssuance (ctx , targetKey , & leaf , nil )
506
+ return tree .UpsertProofLeaf (ctx , targetKey , & leaf , nil )
507
507
}
508
508
509
509
// TestUniverseTreeIsolation tests that each Universe tree is properly isolated
@@ -680,7 +680,7 @@ func TestUniverseLeafQuery(t *testing.T) {
680
680
681
681
leafToScriptKey [scriptKey ] = leaf
682
682
683
- _ , err := baseUniverse .RegisterIssuance (
683
+ _ , err := baseUniverse .UpsertProofLeaf (
684
684
ctx , targetKey , & leaf , nil ,
685
685
)
686
686
require .NoError (t , err )
@@ -754,7 +754,7 @@ func TestUniverseLeafOverflow(t *testing.T) {
754
754
leaf .Amt = math .MaxUint64 - 1
755
755
756
756
// We should be able to insert this np.
757
- _ , err := baseUniverse .RegisterIssuance (ctx , targetKey , & leaf , nil )
757
+ _ , err := baseUniverse .UpsertProofLeaf (ctx , targetKey , & leaf , nil )
758
758
require .NoError (t , err )
759
759
760
760
// We should be able to fetch the leaf based on the base key we used
@@ -767,7 +767,7 @@ func TestUniverseLeafOverflow(t *testing.T) {
767
767
targetKey2 := randLeafKey (t )
768
768
leaf2 := randMintingLeaf (t , assetGen , id .GroupKey )
769
769
770
- _ , err = baseUniverse .RegisterIssuance (ctx , targetKey2 , & leaf2 , nil )
770
+ _ , err = baseUniverse .UpsertProofLeaf (ctx , targetKey2 , & leaf2 , nil )
771
771
require .ErrorIs (t , err , mssmt .ErrIntegerOverflow )
772
772
773
773
// We should still be able to fetch the original issuance proof.
@@ -861,7 +861,7 @@ func TestUniverseRootSum(t *testing.T) {
861
861
862
862
keys [i ] = targetKey
863
863
864
- _ , err := baseUniverse .RegisterIssuance (
864
+ _ , err := baseUniverse .UpsertProofLeaf (
865
865
ctx , targetKey , & leaf , nil ,
866
866
)
867
867
require .NoError (t , err )
0 commit comments