Skip to content

Commit

Permalink
fix: use mode when parse address
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Nov 11, 2019
1 parent 92882fe commit 0641894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/ckb_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def self.address_type(lock_script)
end

def self.parse_address(address_hash)
CKB::Address.parse(address_hash)
CKB::Address.parse(address_hash, mode: ENV["CKB_NET_MODE"])
end

def self.block_reward(node_block_header)
Expand Down

0 comments on commit 0641894

Please sign in to comment.