Skip to content

Commit

Permalink
Update ckb dependencies to 0.119.0, bump to 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Oct 28, 2024
1 parent 715867e commit 209c12a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ckb-sdk"
version = "3.4.1"
version = "3.5.0"
authors = [ "Linfeng Qian <[email protected]>", "Nervos Core Dev <[email protected]>" ]
edition = "2018"
license = "MIT"
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ These features allow for seamless interaction with CKB and facilitate the develo
```toml
# Cargo.toml
[dependencies]
ckb-sdk = "3.4"
ckb-sdk = "3.5.0"
```

## Build
Expand Down
8 changes: 8 additions & 0 deletions src/transaction/handler/multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};
Expand Down
8 changes: 8 additions & 0 deletions src/transaction/handler/sighash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};
Expand Down

0 comments on commit 209c12a

Please sign in to comment.