nano_rpc 0.18.0 → 0.19.0

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
  SHA256:
3
- metadata.gz: cf8be3c6d2bd25560020572dc8cbd1dba8b65a607ea73b2d9c6bc93dfbc33ed1
4
- data.tar.gz: 9a2ea203060e6f87eaccd7fc025285c44141c863187599adcce8c498f78f2cce
3
+ metadata.gz: 93ed4c24e65dc8320cc94b356321fe041f2dcdffe0c8669edcab492c620c646f
4
+ data.tar.gz: 4651150648b4f26c378fddc0f4bff0f610e912f1fcebd6881aadffc5354ad357
5
5
  SHA512:
6
- metadata.gz: ecabcb82404154f872356760c16e75be8509195c27867a968053807ce5c4ba3750dcf1ae00ff14110a644376ae666501b7468291828e126fc03a6f5ff593f41f
7
- data.tar.gz: b1acca37bba5ebf7d970fb795681681863fbbb313772387827cec46976d05dd70c36e39d7a421052ff672dbc70b99d15500d5940de4d5d222cf9a04d38d5a059
6
+ metadata.gz: 2db86115da9adecd287d50b7a8c965564e883867d8a898bae2c94b90a7f077dabd3cd3de6224af73946686d5edfa8523281dc3207dc968a848580a6b5475363e
7
+ data.tar.gz: 80aa936eb2b1d095a1cd37288aedee0a6884a000bdfc207bf1fc3ddf1d8ee228c5f77b36cc8d995e988eea1f11aff6117a86d080cf7e6b0b97393879fe18d823
data/README.md CHANGED
@@ -10,7 +10,7 @@ Nano RPC is a Ruby wrapper for making Remote Procedure Calls against Nano digita
10
10
 
11
11
  To run a Nano node locally, see [Nano Docker Docs](https://github.com/clemahieu/raiblocks/wiki/Docker-node).
12
12
 
13
- **This gem is compliant with Nano release v14.1.**
13
+ **This gem is compliant with Nano release v14.2.**
14
14
 
15
15
  ## Installation
16
16
 
@@ -147,6 +147,8 @@ module NanoRpc::WalletHelper
147
147
  alias set_representative representative_set
148
148
 
149
149
  def send_nano(from:, to:, amount:, id: nil, work: nil)
150
+ from = from.respond_to?(:address) ? from.address : from
151
+ to = to.respond_to?(:address) ? to.address : to
150
152
  send_currency(
151
153
  source: from,
152
154
  destination: to,
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module NanoRpc
3
- VERSION = '0.18.0'
3
+ VERSION = '0.19.0'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nano_rpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Craig-Kuhn (JCK)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-06 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler