etherlite 0.5.1 → 0.5.2

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
  SHA256:
3
- metadata.gz: a8beb990ec1fa4fabecb75a9162645a53eef721e5893d1514d4b31ba79879fbd
4
- data.tar.gz: b6614af7c2af90feaac3bbc20cc5b7b72bdb67cf6c3be4191a4264cab76fa4ae
3
+ metadata.gz: 6bd7c04f60e0b06abbc63f817737ef0deea013791b885151d41f1789d57092a5
4
+ data.tar.gz: dbd6bf87f3e54a7e7c855e6e6bcf14226f5b708c5d8789c7b80b52e931f0dffc
5
5
  SHA512:
6
- metadata.gz: b6aa631ed700987f27da859c7f68781c6ee4d148be34b1bc192af5ac5e223c96b446f4002c598e4f516ed469eeae313ffb9d2658a6dead638544ad03f2e796a2
7
- data.tar.gz: 4349906dba722c8bdaa6a2de6e4d6a33555bf15cb15d90ac292709b4350c9a94d3128b2522d270105e6dedaec8d19e10fff06eae3f68e0750257bbfbb0046c99
6
+ metadata.gz: 2afa891466239576519823c40b146196ecd64f1ec9ff2afb20bac2b3b5010f2d4fe79dbc2811c83e461d3005b917dc405163f2e06556126f9af3644aea22a50f
7
+ data.tar.gz: cd7ce4b0800fe121a0ba5b9ed0e7c86de252101f3186d9504c4f69df0d0dde6300ba885762feb4f76f41ccd2981e1dacc75f1234ae01876324be8ffb6527d492
@@ -23,6 +23,7 @@ module Etherlite::Contract
23
23
 
24
24
  def self.decode(_connection, _json)
25
25
  new(
26
+ _json['blockHash'],
26
27
  _json['blockNumber'].nil? ? nil : Etherlite::Utils.hex_to_uint(_json['blockNumber']),
27
28
  _json['transactionHash'],
28
29
  Etherlite::Address.new(_connection, Etherlite::Utils.normalize_address(_json['address'])),
@@ -30,9 +31,10 @@ module Etherlite::Contract
30
31
  )
31
32
  end
32
33
 
33
- attr_reader :block_number, :tx_hash, :address, :attributes
34
+ attr_reader :block_hash, :block_number, :tx_hash, :address, :attributes
34
35
 
35
- def initialize(_block_number, _tx_hash, _address, _attributes)
36
+ def initialize(_block_hash, _block_number, _tx_hash, _address, _attributes)
37
+ @block_hash = _block_hash
36
38
  @block_number = _block_number
37
39
  @tx_hash = _tx_hash
38
40
  @address = _address
@@ -1,3 +1,3 @@
1
1
  module Etherlite
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etherlite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-15 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: digest-sha3