Skip to content

Commit bf3f830

Browse files
authored
Merge pull request #2873 from nervosnetwork/testnet
Deploy to mainnet
2 parents 2624265 + 8be6290 commit bf3f830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/cell_output.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CellOutput < ApplicationRecord
5050
belongs_to :lock_script
5151
belongs_to :type_script, optional: true
5252
has_one :deployed_contract, foreign_key: :deployed_cell_output_id, class_name: "Contract"
53-
belongs_to :udt_cell, ->(c) { where(published: true) }, foreign_key: :type_hash, class_name: 'Udt', optional: true
53+
belongs_to :udt_cell, ->(c) { where(published: true) }, foreign_key: :type_hash, primary_key: :type_hash, class_name: 'Udt', optional: true
5454

5555
has_many :cell_dependencies, foreign_key: :contract_cell_id,
5656
dependent: :delete_all

0 commit comments

Comments
 (0)