Skip to content

Commit

Permalink
Merge branch 'develop' into address-format-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ashchan authored Apr 10, 2019
2 parents 8eeea80 + c1a8d96 commit 7449ca9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [v0.8.0](https://github.com/nervosnetwork/ckb-sdk-ruby/compare/v0.7.0...rc/v0.8.0) (2019-04-08)
# [v0.9.0](https://github.com/nervosnetwork/ckb-sdk-ruby/compare/v0.8.0...rc/v0.9.0) (2019-04-08)

No changes for v0.8.0.
### Features

* Upgrade SDK with latest CKB changes ([ae5c1c5](https://github.com/nervosnetwork/ckb-sdk-ruby/commit/ae5c1c5))



# [v0.8.0](https://github.com/nervosnetwork/ckb-sdk-ruby/compare/v0.7.0...v0.8.0) (2019-04-08)

### Bug Fixes

* fix tx rpc tests logic



Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ckb-sdk-ruby (0.7.0)
ckb-sdk-ruby (0.9.0)
bitcoin-secp256k1 (~> 0.5.0)
rbnacl (~> 6.0, >= 6.0.1)

Expand Down
2 changes: 1 addition & 1 deletion lib/ckb/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CKB
VERSION = "0.7.0"
VERSION = "0.9.0"
end
10 changes: 10 additions & 0 deletions lib/ckb/wallet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ def get_transaction(hash_hex)
api.get_transaction(hash_hex)
end

def lock
{
version: 0,
binary_hash: api.system_script_cell_hash,
args: [
CKB::Utils.bin_to_hex(CKB::Blake2b.digest(CKB::Blake2b.digest(pubkey_bin)))
]
}
end

def block_assembler_config
args = lock[:args].map do |arg|
"[#{arg.bytes.map(&:to_s).join(", ")}]"
Expand Down

0 comments on commit 7449ca9

Please sign in to comment.