Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to mainnet #1552

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/models/ckb_sync/new_node_data_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def build_cells_and_locks!(
if contract
temp_hash = temp_hash.merge is_contract: true, contract_id: contract.id
else
contract = Contract.create code_hash: lock_script.code_hash
contract = Contract.create code_hash: lock_script.script_hash
temp_hash = temp_hash.merge contract_id: contract.id
end
script = Script.find_or_create_by temp_hash
Expand All @@ -796,7 +796,7 @@ def build_cells_and_locks!(
type_script_ids.each do |type_script_id|
type_script = TypeScript.find(type_script_id)
temp_hash = { script_hash: type_script&.script_hash, is_contract: false }
contract = Contract.find_by code_hash: type_script.script_hash
contract = Contract.find_by code_hash: type_script.code_hash

if contract
temp_hash = temp_hash.merge is_contract: true, contract_id: contract.id
Expand Down
Loading