diff --git a/Cargo.toml b/Cargo.toml index 80be93c..77114fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ckb-sdk" -version = "3.4.0" +version = "3.5.0" authors = [ "Linfeng Qian ", "Nervos Core Dev " ] edition = "2018" license = "MIT" @@ -29,22 +29,22 @@ lru = "0.7.1" dashmap = "5.4" dyn-clone = "1.0" -ckb-types = "0.118.0" -ckb-dao-utils = "0.118.0" -ckb-traits = "0.118.0" -ckb-jsonrpc-types = "0.118.0" -ckb-hash = "0.118.0" -ckb-resource = "0.118.0" -ckb-crypto = { version = "=0.118.0", features = ["secp"] } -ckb-script = "0.118.0" +ckb-types = "0.119.0" +ckb-dao-utils = "0.119.0" +ckb-traits = "0.119.0" +ckb-jsonrpc-types = "0.119.0" +ckb-hash = "0.119.0" +ckb-resource = "0.119.0" +ckb-crypto = { version = "=0.119.0", features = ["secp"] } +ckb-script = "0.119.0" bitflags = "1.3.2" sha3 = "0.10.1" enum-repr-derive = "0.2.0" # for feature test rand = { version = "0.7.3", optional = true } -ckb-mock-tx-types = { version = "0.118.0" } -ckb-chain-spec = "0.118.0" +ckb-mock-tx-types = { version = "0.119.0" } +ckb-chain-spec = "0.119.0" sparse-merkle-tree = "0.6.1" lazy_static = "1.3.0" diff --git a/README.md b/README.md index 8c03ae0..e2122f4 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ These features allow for seamless interaction with CKB and facilitate the develo ```toml # Cargo.toml [dependencies] -ckb-sdk = "3.4.0" +ckb-sdk = "3.5.0" ``` ## Build diff --git a/src/transaction/handler/multisig.rs b/src/transaction/handler/multisig.rs index aa18eea..49878e3 100644 --- a/src/transaction/handler/multisig.rs +++ b/src/transaction/handler/multisig.rs @@ -83,6 +83,14 @@ impl ScriptHandler for Secp256k1Blake160MultisigAllScriptHandler { ) .index(1u32.pack()) .build() + } else if network.network_type == NetworkType::Preview { + OutPoint::new_builder() + .tx_hash( + h256!("0x0fab65924f2784f17ad7f86d6aef4b04ca1ca237102a68961594acebc5c77816") + .pack(), + ) + .index(1u32.pack()) + .build() } else { return Err(TxBuilderError::UnsupportedNetworkType(network.network_type)); }; diff --git a/src/transaction/handler/sighash.rs b/src/transaction/handler/sighash.rs index 0efe2e6..b991eff 100644 --- a/src/transaction/handler/sighash.rs +++ b/src/transaction/handler/sighash.rs @@ -88,6 +88,14 @@ impl ScriptHandler for Secp256k1Blake160SighashAllScriptHandler { ) .index(0u32.pack()) .build() + } else if network.network_type == NetworkType::Preview { + OutPoint::new_builder() + .tx_hash( + h256!("0x0fab65924f2784f17ad7f86d6aef4b04ca1ca237102a68961594acebc5c77816") + .pack(), + ) + .index(0u32.pack()) + .build() } else { return Err(TxBuilderError::UnsupportedNetworkType(network.network_type)); };