File tree Expand file tree Collapse file tree 4 files changed +28
-12
lines changed
Expand file tree Collapse file tree 4 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " ckb-sdk"
3- version = " 3.4.1 "
3+ version = " 3.5.0 "
44authors = [ " Linfeng Qian <thewawar@gmail.com>" , " Nervos Core Dev <dev@nervos.org>" ]
55edition = " 2018"
66license = " MIT"
@@ -29,22 +29,22 @@ lru = "0.7.1"
2929dashmap = " 5.4"
3030dyn-clone = " 1.0"
3131
32- ckb-types = " 0.118 .0"
33- ckb-dao-utils = " 0.118 .0"
34- ckb-traits = " 0.118 .0"
35- ckb-jsonrpc-types = " 0.118 .0"
36- ckb-hash = " 0.118 .0"
37- ckb-resource = " 0.118 .0"
38- ckb-crypto = { version = " =0.118 .0" , features = [" secp" ] }
39- ckb-script = " 0.118 .0"
32+ ckb-types = " 0.119 .0"
33+ ckb-dao-utils = " 0.119 .0"
34+ ckb-traits = " 0.119 .0"
35+ ckb-jsonrpc-types = " 0.119 .0"
36+ ckb-hash = " 0.119 .0"
37+ ckb-resource = " 0.119 .0"
38+ ckb-crypto = { version = " =0.119 .0" , features = [" secp" ] }
39+ ckb-script = " 0.119 .0"
4040bitflags = " 1.3.2"
4141sha3 = " 0.10.1"
4242enum-repr-derive = " 0.2.0"
4343
4444# for feature test
4545rand = { version = " 0.7.3" , optional = true }
46- ckb-mock-tx-types = { version = " 0.118 .0" }
47- ckb-chain-spec = " 0.118 .0"
46+ ckb-mock-tx-types = { version = " 0.119 .0" }
47+ ckb-chain-spec = " 0.119 .0"
4848
4949sparse-merkle-tree = " 0.6.1"
5050lazy_static = " 1.3.0"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ These features allow for seamless interaction with CKB and facilitate the develo
1515``` toml
1616# Cargo.toml
1717[dependencies ]
18- ckb-sdk = " 3.4 "
18+ ckb-sdk = " 3.5.0 "
1919```
2020
2121## Build
Original file line number Diff line number Diff line change @@ -83,6 +83,14 @@ impl ScriptHandler for Secp256k1Blake160MultisigAllScriptHandler {
8383 )
8484 . index ( 1u32 . pack ( ) )
8585 . build ( )
86+ } else if network. network_type == NetworkType :: Preview {
87+ OutPoint :: new_builder ( )
88+ . tx_hash (
89+ h256 ! ( "0x0fab65924f2784f17ad7f86d6aef4b04ca1ca237102a68961594acebc5c77816" )
90+ . pack ( ) ,
91+ )
92+ . index ( 1u32 . pack ( ) )
93+ . build ( )
8694 } else {
8795 return Err ( TxBuilderError :: UnsupportedNetworkType ( network. network_type ) ) ;
8896 } ;
Original file line number Diff line number Diff line change @@ -88,6 +88,14 @@ impl ScriptHandler for Secp256k1Blake160SighashAllScriptHandler {
8888 )
8989 . index ( 0u32 . pack ( ) )
9090 . build ( )
91+ } else if network. network_type == NetworkType :: Preview {
92+ OutPoint :: new_builder ( )
93+ . tx_hash (
94+ h256 ! ( "0x0fab65924f2784f17ad7f86d6aef4b04ca1ca237102a68961594acebc5c77816" )
95+ . pack ( ) ,
96+ )
97+ . index ( 0u32 . pack ( ) )
98+ . build ( )
9199 } else {
92100 return Err ( TxBuilderError :: UnsupportedNetworkType ( network. network_type ) ) ;
93101 } ;
You can’t perform that action at this time.
0 commit comments