@@ -339,7 +339,7 @@ func TestRegistryClient_ListOwnRegistryEntries(t *testing.T) {
339339 Outputs : []wallet.Output {
340340 {
341341 Satoshis : 1000 ,
342- LockingScript : lockingScript .String (),
342+ LockingScript : lockingScript .Bytes (),
343343 Spendable : true ,
344344 Outpoint : wallet.Outpoint {Txid : * tx .TxID ()},
345345 Tags : []string {"registry" , "basket" },
@@ -458,12 +458,14 @@ func TestRegistryClient_RevokeOwnRegistryEntry(t *testing.T) {
458458 // This is necessary to pass the ownership check in RevokeOwnRegistryEntry
459459 outpoint := tu .OutpointFromString (t , "a755810c21e17183ff6db6685f0de239fd3a0a3c0d4ba7773b0b0d1748541e2b.0" )
460460
461+ lockScript , err := script .NewFromASM ("OP_FALSE OP_RETURN 74657374 626173686b65745f6964 54657374204261736b6574 68747470733a2f2f6578616d706c652e636f6d2f69636f6e2e706e67 54657374206261736b6574206465736372697074696f6e 68747470733a2f2f6578616d706c652e636f6d2f646f6373 " + operatorPubKeyHex )
462+ require .NoError (t , err , "Failed to create locking script from ASM" )
461463 mockRegistry .ListOutputsResultToReturn = & wallet.ListOutputsResult {
462464 TotalOutputs : 1 ,
463465 Outputs : []wallet.Output {
464466 {
465467 Satoshis : 1000 ,
466- LockingScript : "OP_FALSE OP_RETURN 74657374 626173686b65745f6964 54657374204261736b6574 68747470733a2f2f6578616d706c652e636f6d2f69636f6e2e706e67 54657374206261736b6574206465736372697074696f6e 68747470733a2f2f6578616d706c652e636f6d2f646f6373 " + operatorPubKeyHex ,
468+ LockingScript : lockScript . Bytes () ,
467469 Spendable : true ,
468470 Outpoint : * outpoint ,
469471 Tags : []string {"registry" , "basket" },
@@ -576,7 +578,7 @@ func TestRegistryClient_ListOwnRegistryEntries_PushDropParity(t *testing.T) {
576578 Outputs : []wallet.Output {
577579 {
578580 Satoshis : 1000 ,
579- LockingScript : lockingScript .String (),
581+ LockingScript : lockingScript .Bytes (),
580582 Spendable : true ,
581583 Outpoint : * tu .OutpointFromString (t , "a755810c21e17183ff6db6685f0de239fd3a0a3c0d4ba7773b0b0d1748541e2b.0" ),
582584 Tags : []string {"registry" , "basket" },
0 commit comments