@@ -11,7 +11,7 @@ use rgbstd::containers::{ConsignmentExt, FileContent, Kit};
1111use rgbstd:: invoice:: Precision ;
1212use rgbstd:: persistence:: Stock ;
1313use rgbstd:: stl:: { AssetSpec , Attachment , ContractTerms , MediaType , RicardianContract } ;
14- use rgbstd:: { Allocation , GenesisSeal , TokenIndex , XChain } ;
14+ use rgbstd:: { Allocation , GenesisSeal , Layer1 , TokenIndex , XChain } ;
1515use schemata:: dumb:: NoResolver ;
1616use schemata:: UniqueDigitalAsset ;
1717use sha2:: { Digest , Sha256 } ;
@@ -21,7 +21,7 @@ fn main() {
2121 let spec = AssetSpec :: new ( "TEST" , "Test uda" , Precision :: Indivisible ) ;
2222 let beneficiary_txid =
2323 Txid :: from_hex ( "14295d5bb1a191cdb6286dc0944df938421e3dfcbf0811353ccac4100c2068c5" ) . unwrap ( ) ;
24- let beneficiary = XChain :: Bitcoin ( GenesisSeal :: rand ( beneficiary_txid, 1 ) ) ;
24+ let beneficiary = XChain :: Bitcoin ( GenesisSeal :: new_random ( beneficiary_txid, 1 ) ) ;
2525
2626 let index = TokenIndex :: from_inner ( 2 ) ;
2727
@@ -54,6 +54,7 @@ fn main() {
5454 "ssi:anonymous" ,
5555 UniqueDigitalAsset :: schema ( ) . schema_id ( ) ,
5656 "RGB21Unique" ,
57+ Layer1 :: Bitcoin ,
5758 ) . expect ( "schema fails to implement RGB21 interface" )
5859
5960 . add_global_state ( "tokens" , token_data)
0 commit comments