@@ -35,6 +35,10 @@ use clap::{Args, Parser, Subcommand};
3535use serde:: { Deserialize , Serialize } ;
3636use std:: { collections:: HashMap , error:: Error as StdErr , fs, path:: PathBuf } ;
3737
38+ // The transaction hash i deployed my omnilock script with open transaction function on my test environment.
39+ // You should not use this hash to find your open transaction code_hash at any circumstances,
40+ // or you will lost your CKB for ever, or not make the example work.
41+ // You should replace this hash with your own transaction hash or provide one with command line parameter for this example.
3842const OPENTX_TX_HASH : & str = "d7697f6b3684d1451c42cc538b3789f13b01430007f65afe74834b6a28714a18" ;
3943const OPENTX_TX_IDX : & str = "0" ;
4044
@@ -438,8 +442,8 @@ fn build_omnilock_addr(args: &BuildOmniLockAddrArgs) -> Result<(), Box<dyn StdEr
438442 } else if let Some ( ethereum_receiver) = args. ethereum_receiver . as_ref ( ) {
439443 let privkey = secp256k1:: SecretKey :: from_slice ( ethereum_receiver. as_bytes ( ) ) . unwrap ( ) ;
440444 let pubkey = secp256k1:: PublicKey :: from_secret_key ( & SECP256K1 , & privkey) ;
441- println ! ( "pubkey:{:?}" , hex_string( & pubkey. serialize( ) ) ) ;
442- println ! ( "pubkey:{:?}" , hex_string( & pubkey. serialize_uncompressed( ) ) ) ;
445+ // println!("pubkey:{:?}", hex_string(&pubkey.serialize()));
446+ // println!("pubkey:{:?}", hex_string(&pubkey.serialize_uncompressed()));
443447 let addr = keccak160 ( Pubkey :: from ( pubkey) . as_ref ( ) ) ;
444448 OmniLockConfig :: new_ethereum ( addr)
445449 } else if !args. multis_args . sighash_address . is_empty ( ) {
0 commit comments