Skip to content

Commit

Permalink
fix: add options to wallet.from_hex
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 17, 2019
1 parent 66c2492 commit ac2b658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ckb/wallet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def initialize(api, key, skip_data_and_type: true, hash_type: "type", mode: MODE
@skip_data_and_type = skip_data_and_type
end

def self.from_hex(api, privkey, hash_type: "type")
new(api, Key.new(privkey), hash_type: hash_type)
def self.from_hex(api, privkey, hash_type: "type", skip_data_and_type: true, mode: MODE::TESTNET)
new(api, Key.new(privkey), hash_type: hash_type, skip_data_and_type: skip_data_and_type, mode: mode)
end

def hash_type=(hash_type)
Expand Down

0 comments on commit ac2b658

Please sign in to comment.