web3-eth 0.2.23 → 0.2.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 367f280dbfd454078088f84b5285554facb4c0ef
4
- data.tar.gz: 46b237bcdfa35281333e08a7e75b30b25a2f021b
3
+ metadata.gz: 349ba2e58a5171bb47c408e03e48ae0bb412d9df
4
+ data.tar.gz: edd6d4cb343b3b9a6fa2517f8b2c3e22c2f2699c
5
5
  SHA512:
6
- metadata.gz: 9fd72406fee7ec39e1e0301083c67cc43b2515f8946d00a4cc6143018a1119f9eed4e4248c3d9275a16da3796173cf628f93f7ee99ab0cbdbe3bf771da696273
7
- data.tar.gz: fb1a3ddc4178a0e0163bebed295baca51bc350682ec4da3ba746bfca38d4482b95b876c8a6afa369a06dd81f9580a90d12ecc2787021b4f864a97333020b29b0
6
+ metadata.gz: 122feca9cb6d36847433c515955535662b0d0906818d12c158fa3d7e15cbfb45e8cd6b59d9a87d8311a9d6f65f42797c4bc661f9166607d924c2efbfae4f5f06
7
+ data.tar.gz: d4bff9d38361237b2b64ef7dabac296edad63badb7197c2a59a3648c73bc37a1b9a356dd5374f0ded4dbc22c1558cf68c1c5bdbad99ffa55e8f5323033b848fd
@@ -235,7 +235,9 @@ module Web3::Eth::Abi
235
235
  parsed_types.each_with_index do |t, i|
236
236
  if t.dynamic?
237
237
  offset, next_offset = start_positions[i, 2]
238
- outputs[i] = data[offset...next_offset]
238
+ if offset<=data.size && next_offset<=data.size
239
+ outputs[i] = data[offset...next_offset]
240
+ end
239
241
  end
240
242
  end
241
243
 
@@ -1,5 +1,5 @@
1
1
  module Web3
2
2
  module Eth
3
- VERSION = "0.2.23"
3
+ VERSION = "0.2.24"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web3-eth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.23
4
+ version: 0.2.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - studnev