Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #51 from classicalliu/replace-unpack1
Browse files Browse the repository at this point in the history
chore: replace unpack1 with unpack[0]
  • Loading branch information
ashchan authored Feb 12, 2019
2 parents 2679b0f + 9df5b08 commit d560d5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ckb/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.hex_to_bin(s)
end

def self.bin_to_hex(s)
s.unpack1("H*")
s.unpack("H*")[0]
end

def self.bin_to_prefix_hex(s)
Expand Down
2 changes: 1 addition & 1 deletion scripts

0 comments on commit d560d5b

Please sign in to comment.