Skip to content

Commit

Permalink
feat: null address return lock info
Browse files Browse the repository at this point in the history
  • Loading branch information
shaojunda committed Dec 12, 2019
1 parent d6d5a79 commit 6316ff8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/models/null_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def ckb_transactions_count

def lock_hash; end

def lock_info; end
def lock_info
parsed_address = CKB::AddressParser.new(address_hash).parse
LockScript.new(args: parsed_address.script.args, code_hash: parsed_address.script.code_hash).lock_info
end

def cached_lock_script; end

Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class TestCase
include FactoryBot::Syntax::Methods
include ::RequestHelpers
if ENV["CI"] != "true"
parallelize(workers: 2, with: :processes)
parallelize(workers: 2, with: :threads)
end

# Add more helper methods to be used by all tests here...
Expand Down

0 comments on commit 6316ff8

Please sign in to comment.