diff --git a/Eth.html b/Eth.html index 3f4c1f1b..febc9733 100644 --- a/Eth.html +++ b/Eth.html @@ -195,7 +195,7 @@
-270 -271 272 273 274 275 276 -277+277 +278 +279
# File 'lib/eth/tx.rb', line 270 +# File 'lib/eth/tx.rb', line 272 def sanitize_address(addr) addr = "" if addr.nil? @@ -1562,13 +1562,13 @@
-284 -285 286 -287+287 +288 +289
# File 'lib/eth/tx.rb', line 284 +# File 'lib/eth/tx.rb', line 286 def sanitize_amount(val) val = 0 if val.nil? @@ -1643,13 +1643,13 @@
-259 -260 261 -262+262 +263 +264
# File 'lib/eth/tx.rb', line 259 +# File 'lib/eth/tx.rb', line 261 def sanitize_chain(id) id = Chain::ETHEREUM if id.nil? @@ -1724,16 +1724,16 @@
-294 -295 296 297 298 299 -300+300 +301 +302
# File 'lib/eth/tx.rb', line 294 +# File 'lib/eth/tx.rb', line 296 def sanitize_data(data) data = "" if data.nil? @@ -1811,8 +1811,6 @@
-308 -309 310 311 312 @@ -1825,10 +1823,12 @@+322 +323 +324319 320 321 -322
# File 'lib/eth/tx.rb', line 308 +# File 'lib/eth/tx.rb', line 310 def sanitize_list(list) list = [] if list.nil? @@ -1894,13 +1894,13 @@
-327 -328 329 -330+330 +331 +332
# File 'lib/eth/tx.rb', line 327 +# File 'lib/eth/tx.rb', line 329 def signed?(tx) !tx.signature_r.nil? and tx.signature_r != 0 and @@ -2132,18 +2132,18 @@
-232 -233 234 235 236 237 238 239 -240+240 +241 +242
# File 'lib/eth/tx.rb', line 232 +# File 'lib/eth/tx.rb', line 234 def validate_eip1559_params(fields) if fields[:priority_fee].nil? or fields[:priority_fee] < 0 @@ -2241,15 +2241,15 @@
-247 -248 249 250 251 -252+252 +253 +254
# File 'lib/eth/tx.rb', line 247 +# File 'lib/eth/tx.rb', line 249 def validate_legacy_params(fields) if fields[:gas_price].nil? or fields[:gas_price] < 0 @@ -2400,7 +2400,9 @@+223 +224 +225220 221 222 -223
# File 'lib/eth/tx.rb', line 209 @@ -2409,7 +2411,9 @@if fields[:nonce].nil? or fields[:nonce] < 0 raise ParameterError, "Invalid signer nonce #{fields[:nonce]}!" end - if fields[:gas_limit].nil? or fields[:gas_limit] < DEFAULT_GAS_LIMIT or fields[:gas_limit] > BLOCK_GAS_LIMIT + if fields[:gas_limit].nil? or + fields[:gas_limit] < DEFAULT_GAS_LIMIT or + (fields[:gas_limit] > BLOCK_GAS_LIMIT and fields[:chain_id] == Chain::ETHEREUM) raise ParameterError, "Invalid gas limit #{fields[:gas_limit]}!" end unless fields[:value] >= 0 @@ -2896,17 +2900,17 @@
-270 -271 272 273 274 275 276 -277+277 +278 +279
# File 'lib/eth/tx.rb', line 270 +# File 'lib/eth/tx.rb', line 272 def sanitize_address(addr) addr = "" if addr.nil? @@ -2985,13 +2989,13 @@
-284 -285 286 -287+287 +288 +289
# File 'lib/eth/tx.rb', line 284 +# File 'lib/eth/tx.rb', line 286 def sanitize_amount(val) val = 0 if val.nil? @@ -3066,13 +3070,13 @@
-259 -260 261 -262+262 +263 +264
# File 'lib/eth/tx.rb', line 259 +# File 'lib/eth/tx.rb', line 261 def sanitize_chain(id) id = Chain::ETHEREUM if id.nil? @@ -3147,16 +3151,16 @@
-294 -295 296 297 298 299 -300+300 +301 +302
# File 'lib/eth/tx.rb', line 294 +# File 'lib/eth/tx.rb', line 296 def sanitize_data(data) data = "" if data.nil? @@ -3234,8 +3238,6 @@
-308 -309 310 311 312 @@ -3248,10 +3250,12 @@+322 +323 +324319 320 321 -322
# File 'lib/eth/tx.rb', line 308 +# File 'lib/eth/tx.rb', line 310 def sanitize_list(list) list = [] if list.nil? @@ -3317,13 +3321,13 @@
-327 -328 329 -330+330 +331 +332
# File 'lib/eth/tx.rb', line 327 +# File 'lib/eth/tx.rb', line 329 def signed?(tx) !tx.signature_r.nil? and tx.signature_r != 0 and @@ -3555,18 +3559,18 @@
-232 -233 234 235 236 237 238 239 -240+240 +241 +242
# File 'lib/eth/tx.rb', line 232 +# File 'lib/eth/tx.rb', line 234 def validate_eip1559_params(fields) if fields[:priority_fee].nil? or fields[:priority_fee] < 0 @@ -3664,15 +3668,15 @@
-247 -248 249 250 251 -252+252 +253 +254
# File 'lib/eth/tx.rb', line 247 +# File 'lib/eth/tx.rb', line 249 def validate_legacy_params(fields) if fields[:gas_price].nil? or fields[:gas_price] < 0 @@ -3823,7 +3827,9 @@+223 +224 +225220 221 222 -223
# File 'lib/eth/tx.rb', line 209 @@ -3832,7 +3838,9 @@if fields[:nonce].nil? or fields[:nonce] < 0 raise ParameterError, "Invalid signer nonce #{fields[:nonce]}!" end - if fields[:gas_limit].nil? or fields[:gas_limit] < DEFAULT_GAS_LIMIT or fields[:gas_limit] > BLOCK_GAS_LIMIT + if fields[:gas_limit].nil? or + fields[:gas_limit] < DEFAULT_GAS_LIMIT or + (fields[:gas_limit] > BLOCK_GAS_LIMIT and fields[:chain_id] == Chain::ETHEREUM) raise ParameterError, "Invalid gas limit #{fields[:gas_limit]}!" end unless fields[:value] >= 0 @@ -3853,7 +3861,7 @@
diff --git a/Eth/Tx/DecoderError.html b/Eth/Tx/DecoderError.html index cb53d422..dc9e3b04 100644 --- a/Eth/Tx/DecoderError.html +++ b/Eth/Tx/DecoderError.html @@ -125,7 +125,7 @@
Overview
diff --git a/Eth/Tx/Eip1559.html b/Eth/Tx/Eip1559.html index deb6944e..ab89e764 100644 --- a/Eth/Tx/Eip1559.html +++ b/Eth/Tx/Eip1559.html @@ -2583,7 +2583,7 @@diff --git a/Eth/Tx/Eip2930.html b/Eth/Tx/Eip2930.html index 45dd4871..3ea72fc8 100644 --- a/Eth/Tx/Eip2930.html +++ b/Eth/Tx/Eip2930.html @@ -2486,7 +2486,7 @@
diff --git a/Eth/Tx/Legacy.html b/Eth/Tx/Legacy.html index c6953bd9..1af6e9ff 100644 --- a/Eth/Tx/Legacy.html +++ b/Eth/Tx/Legacy.html @@ -2326,7 +2326,7 @@
diff --git a/Eth/Tx/ParameterError.html b/Eth/Tx/ParameterError.html index 932a0c84..b174a816 100644 --- a/Eth/Tx/ParameterError.html +++ b/Eth/Tx/ParameterError.html @@ -125,7 +125,7 @@
Overview
diff --git a/Eth/Tx/TransactionTypeError.html b/Eth/Tx/TransactionTypeError.html index 1ace7d8f..a81fba4c 100644 --- a/Eth/Tx/TransactionTypeError.html +++ b/Eth/Tx/TransactionTypeError.html @@ -125,7 +125,7 @@Overview
diff --git a/Eth/Unit.html b/Eth/Unit.html index 22e7ae97..349a8979 100644 --- a/Eth/Unit.html +++ b/Eth/Unit.html @@ -255,7 +255,7 @@diff --git a/Eth/Util.html b/Eth/Util.html index b13dc44a..0315f2c3 100644 --- a/Eth/Util.html +++ b/Eth/Util.html @@ -5238,7 +5238,7 @@
diff --git a/_index.html b/_index.html index aa1930a2..476e1af5 100644 --- a/_index.html +++ b/_index.html @@ -657,7 +657,7 @@
Namespace Listing A-Z
diff --git a/file.README.html b/file.README.html index ebe07099..53e493cb 100644 --- a/file.README.html +++ b/file.README.html @@ -131,7 +131,7 @@License and Credits
diff --git a/index.html b/index.html index 8a60f32f..91268bb4 100644 --- a/index.html +++ b/index.html @@ -131,7 +131,7 @@License and Credits
diff --git a/top-level-namespace.html b/top-level-namespace.html index f57c194c..abd7571f 100644 --- a/top-level-namespace.html +++ b/top-level-namespace.html @@ -100,7 +100,7 @@Defined Under Namespace