web3-eth 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46a017144eec9eae04f0dace7ce2dabfc3b30586
4
- data.tar.gz: b00451cc369dc9ac9260819e7415cd36218bc8cd
3
+ metadata.gz: da600b47e14dba5b1173aad4afea3a213f53b36f
4
+ data.tar.gz: 4542e02c3fd58e9788bd7191280692b9724bed48
5
5
  SHA512:
6
- metadata.gz: b1ad3d1eeec8d03d91427bcde4c121f06130e62e782cea83483a17df38f83c17e7acb4320a46f4f3fb3c36fb140d6e5f2e051ea038f1e51e157662636a613655
7
- data.tar.gz: c7b19d63bc2e5af59b17c11a37de9328ad82dfeac45f1f93d6bc5d352d47ce77c3c0bd7d4075d5cb0eee900a01daacae41caf23eb3cf438308c2eec09622fcab
6
+ metadata.gz: 45a59c25ae0b03b09410edfff47cbf79ab5a9435600af17747f730dc7154b5d1d70815069834e038ebbb53c407566f5fcc5cc9a2a7f5cf71981d508aa037c43d
7
+ data.tar.gz: 12a8e90744e1635d153f986d9321f03f9e2a03779469108509bae9082e32de998ff4d33493a97f9cd8310b47b7500e5c2774720d28b59f6a39addf672243a169
@@ -17,6 +17,10 @@ module Web3
17
17
 
18
18
  end
19
19
 
20
+ def value_wei
21
+ from_hex action['value']
22
+ end
23
+
20
24
  def value_eth
21
25
  wei_to_ether from_hex action['value']
22
26
  end
@@ -39,6 +39,10 @@ module Web3
39
39
  from_hex blockNumber
40
40
  end
41
41
 
42
+ def value_wei
43
+ from_hex value
44
+ end
45
+
42
46
  def value_eth
43
47
  wei_to_ether from_hex value
44
48
  end
@@ -1,5 +1,5 @@
1
1
  module Web3
2
2
  module Eth
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - studnev