erc20 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -6
- data/bin/erc20 +2 -2
- data/lib/erc20/erc20.rb +1 -1
- data/lib/erc20/wallet.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 34ffb8c4c36d85d7afb74f0a573cc97cb58502ddcb5b39cdd032f771b9547592
|
|
4
|
+
data.tar.gz: 5bb3efad4575d96a7d5fc0a3abc58b79835ec1954177dd774858793431595ce8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4db054bf7264d2df18927384fdbbf6d72152aab5103456e319143681cc97653b7d2236941dbb26961f7de3b9752d7e057382f3695d63e7b3ba4ae92f78e8f00b
|
|
7
|
+
data.tar.gz: 5eb68447c8736c39125d19daf27c5856ca7122b3b26784f024efc2fadcf1d5f55b6bb3ff088e335ef29cf55facfa8b734e42d9bb42a28aff78826c6e99dd2d28
|
data/Gemfile.lock
CHANGED
|
@@ -42,13 +42,13 @@ GEM
|
|
|
42
42
|
cucumber-gherkin (> 36, < 40)
|
|
43
43
|
cucumber-messages (> 31, < 33)
|
|
44
44
|
cucumber-tag-expressions (> 6, < 9)
|
|
45
|
-
cucumber-cucumber-expressions (
|
|
45
|
+
cucumber-cucumber-expressions (19.0.0)
|
|
46
46
|
bigdecimal
|
|
47
|
-
cucumber-gherkin (
|
|
48
|
-
cucumber-messages (>= 31, <
|
|
47
|
+
cucumber-gherkin (38.0.0)
|
|
48
|
+
cucumber-messages (>= 31, < 33)
|
|
49
49
|
cucumber-html-formatter (22.3.0)
|
|
50
50
|
cucumber-messages (> 23, < 33)
|
|
51
|
-
cucumber-messages (
|
|
51
|
+
cucumber-messages (32.0.1)
|
|
52
52
|
cucumber-tag-expressions (8.1.0)
|
|
53
53
|
date (3.5.1)
|
|
54
54
|
diff-lcs (1.6.2)
|
|
@@ -60,6 +60,7 @@ GEM
|
|
|
60
60
|
elapsed (0.2.2)
|
|
61
61
|
loog (~> 0.6)
|
|
62
62
|
tago (~> 0.1)
|
|
63
|
+
ellipsized (0.3.0)
|
|
63
64
|
erb (6.0.1)
|
|
64
65
|
eth (0.5.13)
|
|
65
66
|
forwardable (~> 1.3)
|
|
@@ -98,7 +99,8 @@ GEM
|
|
|
98
99
|
language_server-protocol (3.17.0.5)
|
|
99
100
|
lint_roller (1.1.0)
|
|
100
101
|
logger (1.7.0)
|
|
101
|
-
loog (0.
|
|
102
|
+
loog (0.7.2)
|
|
103
|
+
ellipsized
|
|
102
104
|
logger (~> 1.0)
|
|
103
105
|
memoist3 (1.0.0)
|
|
104
106
|
mini_mime (1.1.5)
|
|
@@ -128,7 +130,7 @@ GEM
|
|
|
128
130
|
date
|
|
129
131
|
stringio
|
|
130
132
|
public_suffix (7.0.2)
|
|
131
|
-
qbash (0.
|
|
133
|
+
qbash (0.6.0)
|
|
132
134
|
backtrace (> 0)
|
|
133
135
|
elapsed (> 0)
|
|
134
136
|
loog (> 0)
|
data/bin/erc20
CHANGED
|
@@ -99,9 +99,9 @@ Options are:"
|
|
|
99
99
|
end
|
|
100
100
|
case opts.arguments[0]
|
|
101
101
|
when 'key'
|
|
102
|
-
puts Eth::Key.new.private_hex
|
|
102
|
+
puts Eth::Key.new.private_hex.downcase
|
|
103
103
|
when 'address'
|
|
104
|
-
puts Eth::Key.new(priv: opts.arguments[1]).address.to_s
|
|
104
|
+
puts Eth::Key.new(priv: opts.arguments[1]).address.to_s.downcase
|
|
105
105
|
when 'price'
|
|
106
106
|
puts wallet.gas_price
|
|
107
107
|
when 'balance'
|
data/lib/erc20/erc20.rb
CHANGED
data/lib/erc20/wallet.rb
CHANGED
|
@@ -247,7 +247,8 @@ class ERC20::Wallet
|
|
|
247
247
|
raise "Amount (#{amount}) must be a positive Integer" unless amount.positive?
|
|
248
248
|
if limit
|
|
249
249
|
raise 'Gas limit must be an Integer' unless limit.is_a?(Integer)
|
|
250
|
-
raise
|
|
250
|
+
raise "Gas limit #{limit} is below #{Eth::Tx::DEFAULT_GAS_LIMIT}" if limit < Eth::Tx::DEFAULT_GAS_LIMIT
|
|
251
|
+
raise "Gas limit #{limit} is above #{Eth::Tx::BLOCK_GAS_LIMIT}" if limit > Eth::Tx::BLOCK_GAS_LIMIT
|
|
251
252
|
end
|
|
252
253
|
if price
|
|
253
254
|
raise 'Gas price must be an Integer' unless price.is_a?(Integer)
|