Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Apr 29, 2019
1 parent 7f005fc commit 836cf5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/ckb/utils.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'secp256k1'

module Ckb
MIN_CELL_CAPACITY = Utils.byte_to_shannon(40)
MIN_UDT_CELL_CAPACITY = Utils.byte_to_shannon(48)
MIN_CELL_CAPACITY = 40 * 10**8
MIN_UDT_CELL_CAPACITY = 48 * 10**8

module Utils
def self.hex_to_bin(str)
Expand Down
2 changes: 1 addition & 1 deletion test/ckb/tx/output_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_calculate_min_capacity
}
)

min_capacity = Ckb.Utils.byte_to_shannon(41)
min_capacity = Ckb::Utils.byte_to_shannon(41)

assert_equal output.calculate_min_capacity, min_capacity
end
Expand Down

0 comments on commit 836cf5a

Please sign in to comment.