Skip to content

Commit

Permalink
fix: return hex string format type
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Sep 19, 2019
1 parent 10fed4d commit c3c9af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ckb/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def self.parse_full_payload_address(address, mode: DEFAULT_MODE)
offset += arg_len
end

[format_type, code_hash, args.map { |item| CKB::Utils.bin_to_hex(item) }]
["0x#{format_type}", code_hash, args.map { |item| CKB::Utils.bin_to_hex(item) }]
end

def self.parse(address, mode: DEFAULT_MODE)
Expand Down

0 comments on commit c3c9af7

Please sign in to comment.