Skip to content

Commit

Permalink
chore: update rgbpp transaction tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitz committed Jun 12, 2024
1 parent ab32739 commit 10dee3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bitcoin_annotation.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class BitcoinAnnotation < ApplicationRecord
belongs_to :ckb_transaction

enum :leap_direction, %i[in withinBTC]
enum :leap_direction, %i[in withinBTC leapoutBTC]
enum :transfer_step, %i[isomorphic unlock]
end

Expand Down
2 changes: 2 additions & 0 deletions app/workers/bitcoin_transaction_detect_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def annotation_workflow_attributes(transaction)
end
elsif input_lock_types == ["btc_time"]
["in", "unlock"]
elsif [["btc_time", "rgbpp"], ["btc_time"]].include?(output_lock_types)
["leapoutBTC", "isomorphic"]

Check warning on line 132 in app/workers/bitcoin_transaction_detect_worker.rb

View check run for this annotation

Codecov / codecov/patch

app/workers/bitcoin_transaction_detect_worker.rb#L131-L132

Added lines #L131 - L132 were not covered by tests
end
end

Expand Down

0 comments on commit 10dee3e

Please sign in to comment.