Skip to content

Commit

Permalink
fix staticcallysized arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
astudnev committed May 31, 2018
1 parent 34a5dd6 commit 11f02a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/web3/eth/abi/abi_coder.rb
Expand Up @@ -269,7 +269,7 @@ def decode_type(type, arg)
(0...l).map {|i| decode_type(subtype, arg[32 + subtype.size*i, subtype.size]) }
end
elsif !type.dims.empty? # static-sized arrays
l = type.dims.last[0]
l = type.dims.last
subtype = type.subtype

(0...l).map {|i| decode_type(subtype, arg[subtype.size*i, subtype.size]) }
Expand Down
2 changes: 1 addition & 1 deletion lib/web3/eth/version.rb
@@ -1,5 +1,5 @@
module Web3
module Eth
VERSION = "0.2.15"
VERSION = "0.2.16"
end
end

0 comments on commit 11f02a0

Please sign in to comment.