@@ -328,7 +328,7 @@ func TestUniverseIssuanceProofs(t *testing.T) {
328
328
329
329
// We should be able to fetch the issuance proof now, using
330
330
// that very same target key generated.
331
- dbProof , err := baseUniverse .FetchIssuanceProof (ctx , targetKey )
331
+ dbProof , err := baseUniverse .FetchProof (ctx , targetKey )
332
332
require .NoError (t , err )
333
333
334
334
uniProof := dbProof [0 ]
@@ -481,7 +481,7 @@ func TestUniverseMetaBlob(t *testing.T) {
481
481
482
482
// We should be able to fetch the leaf based on the base key we used
483
483
// above.
484
- dbProof , err := baseUniverse .FetchIssuanceProof (ctx , targetKey )
484
+ dbProof , err := baseUniverse .FetchProof (ctx , targetKey )
485
485
require .NoError (t , err )
486
486
487
487
uniProof := dbProof [0 ]
@@ -688,7 +688,7 @@ func TestUniverseLeafQuery(t *testing.T) {
688
688
689
689
// If we query for only the minting point, then all three leaves should
690
690
// be returned.
691
- proofs , err := baseUniverse .FetchIssuanceProof (
691
+ proofs , err := baseUniverse .FetchProof (
692
692
ctx , universe.BaseLeafKey {
693
693
OutPoint : rootMintingPoint ,
694
694
},
@@ -703,7 +703,7 @@ func TestUniverseLeafQuery(t *testing.T) {
703
703
scriptKey , err := btcec .ParsePubKey (scriptKeyBytes [:])
704
704
require .NoError (t , err )
705
705
706
- p , err := baseUniverse .FetchIssuanceProof (
706
+ p , err := baseUniverse .FetchProof (
707
707
ctx , universe.BaseLeafKey {
708
708
OutPoint : rootMintingPoint ,
709
709
ScriptKey : & asset.ScriptKey {
@@ -759,7 +759,7 @@ func TestUniverseLeafOverflow(t *testing.T) {
759
759
760
760
// We should be able to fetch the leaf based on the base key we used
761
761
// above.
762
- _ , err = baseUniverse .FetchIssuanceProof (ctx , targetKey )
762
+ _ , err = baseUniverse .FetchProof (ctx , targetKey )
763
763
require .NoError (t , err )
764
764
765
765
// If we try to insert another, then this should fail, as the tree will
@@ -771,7 +771,7 @@ func TestUniverseLeafOverflow(t *testing.T) {
771
771
require .ErrorIs (t , err , mssmt .ErrIntegerOverflow )
772
772
773
773
// We should still be able to fetch the original issuance proof.
774
- _ , err = baseUniverse .FetchIssuanceProof (ctx , targetKey )
774
+ _ , err = baseUniverse .FetchProof (ctx , targetKey )
775
775
require .NoError (t , err )
776
776
}
777
777
@@ -877,7 +877,7 @@ func TestUniverseRootSum(t *testing.T) {
877
877
// Each of the leaves inserted should have the proper
878
878
// value as well.
879
879
for i , key := range keys {
880
- proofs , err := baseUniverse .FetchIssuanceProof (
880
+ proofs , err := baseUniverse .FetchProof (
881
881
ctx , key ,
882
882
)
883
883
require .NoError (t , err )
0 commit comments