erc20 0.2.6 → 0.2.7
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 +1 -1
- 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: 183a657a51b8118fe339b761e5068538b04eb1022cf1ae7797a7e0041d178097
|
|
4
|
+
data.tar.gz: 36edcba4c3daff66b3a5623d21e3ccc591ed1e6a31cf92b7de1760e0f00340e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19fa8fb220a2eb22bdaf8fd994862448a77a23a65a024346cebb9083d63f71f5a870cf31995d93053a424cda8cbf6ae875874e13c54a810eaf1abb0b35d6b2c7
|
|
7
|
+
data.tar.gz: 5d0f3c86ffbbc4b1173f6fabe5d4d7559375ee0212fd587bae304ba3680fe26fadb478c6d95cdac2970ab1059ff3131bd0b08f0d2029fd7c56b869b32690bbf1
|
data/Gemfile.lock
CHANGED
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)
|