Skip to content

Commit

Permalink
Merge pull request #24 from TheWaWaR/bump-up-to-v2.0
Browse files Browse the repository at this point in the history
chore: bump up to v2.0
  • Loading branch information
TheWaWaR authored Aug 10, 2022
2 parents 696bfbf + 1601856 commit b86b24a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@

# 2.0.0
* Add omni-lock support
- Support administrator mode
- Support anyone-can-pay mode
- Support time-lock mode
- Support Unlock via owner's public key hash (sighash/multisig/ethereum)
- Support Unlock via owner's lock script hash
* Add `acceptable_indexer_leftbehind` field in `DefaultCellCollector`
* **breaking change**: change `CapacityProvider::new(lock_scripts)` argument type
- from `Vec<(Script, WitnessArgs)>` to `Vec<(Script, WitnessArgs, SinceSource)>`
- Add `CapacityProvider::new_simple` for compatible with old function

# 1.1.0
* Update ckb to v0.104.0

# 1.0.1
* Fix sync_state rpc return data type

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ckb-sdk"
version = "1.1.1"
version = "2.0.0"
authors = ["Linfeng Qian <[email protected]>", "Nervos Core Dev <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/tx_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ pub fn balance_tx_capacity(
));
}
let mut since_bytes = [0u8; 8];
since_bytes.copy_from_slice(&lock_arg[*offset..]);
since_bytes.copy_from_slice(&lock_arg[*offset..*offset + 8]);
u64::from_le_bytes(since_bytes)
}
SinceSource::Value(since_value) => *since_value,
Expand Down

0 comments on commit b86b24a

Please sign in to comment.