web3-eth 0.2.44 → 0.2.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/web3/eth/contract.rb +1 -1
- data/lib/web3/eth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca610f7e51cabe8deea63017a90d5615e2bea31a798e06c6034a1f20f5c7c7f9
|
4
|
+
data.tar.gz: a783f5b5830db81f5ced929f078b82225565e28afb71d64fdec4d380a8fe0254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9026b970e0f81d6fb33b897077a8419be91f36875f482afb79531375cbd9db5822bd13de977383995273c439029a823d25162fe5842c97d7ee8844d7315c4973
|
7
|
+
data.tar.gz: b546093564ee5eb379ef8ddcb803bff39476b263ea8936eeb49a80af691eafc1685e809f80783a195d458bda62fde765d6e7340a18bd1683d92eb4b22775b96c
|
data/lib/web3/eth/contract.rb
CHANGED
@@ -34,7 +34,7 @@ module Web3
|
|
34
34
|
def initialize abi
|
35
35
|
@abi = abi
|
36
36
|
@name = abi['name']
|
37
|
-
@constant = !!abi['constant']
|
37
|
+
@constant = !!abi['constant'] || abi['stateMutability']=='view'
|
38
38
|
@input_types = abi['inputs'] ? abi['inputs'].map{|a| parse_component_type a } : []
|
39
39
|
@output_types = abi['outputs'].map{|a| parse_component_type a } if abi['outputs']
|
40
40
|
@signature = Abi::Utils.function_signature @name, @input_types
|
data/lib/web3/eth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web3-eth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- studnev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rlp
|