garnet_client 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: dc90209e369247c11780a14596b54ea86fe139a9
4
- data.tar.gz: a80b35783d385ba06e630c8d06d25274e35e7c89
3
+ metadata.gz: a35f6708cdb324815061bae7cafb4df432ec632e
4
+ data.tar.gz: 299f261bc53e734f9356aa08c95a5ea1bb2e69a6
5
5
  SHA512:
6
- metadata.gz: ba9753b1129266b330f66a10b598a60c0787a65cce0b4b4ca5725da5aeb00967fbdb60e0d5eabffde0ced795926e4dc8226e23f6c4494cd5c57b899cf5d18f88
7
- data.tar.gz: a53752138c35d662130035225b256992743ecda0670be23b679066e6d0632d4d33d41ce899f1c8e88c14a2543953b95970a1528105c58f5848d371dec0a08f5f
6
+ metadata.gz: 0d222cb1e668f81080fb311ed36dc33bd04026c138e1464eba12b3c8feb6653fbe77a5b53c24213f18cc48694cdd43d296a2fe2590453c679d5fff1e14b6a32d
7
+ data.tar.gz: 3b3a7a9306728f03877f7d1f32bd12372e406d4c0b4cfce1d61fecd0332e38393d575ef0eb9581b6689ca403e05ee93c18fb4961db18d9c6785c106856e7b968
@@ -24,9 +24,10 @@ module GarnetClient
24
24
  # 发送一笔转账
25
25
  def self.tx_transfer(coin_type, source_id, from, to, value)
26
26
  service_path = "/tx/#{coin_type}/transfer"
27
+ from_address = from.nil? ? '' : from
27
28
  post_params = {
28
29
  "source_id" => source_id,
29
- "from" => from,
30
+ "from" => from_address,
30
31
  "to" => to,
31
32
  "value" => value
32
33
  }
@@ -8,7 +8,7 @@ module GarnetClient
8
8
 
9
9
  #发送请求
10
10
  def self.send_post(service_path, query_params)
11
- api_url = "#{GarnetClient.api_base_url}/#{service_path}"
11
+ api_url = "#{GarnetClient.api_base_url}#{service_path}"
12
12
  headers = GarnetClient.response_headers
13
13
  html_content = ''
14
14
  html_result = ''
@@ -41,7 +41,7 @@ module GarnetClient
41
41
  end
42
42
 
43
43
  def self.send_get(service_path)
44
- api_url = "#{GarnetClient.api_base_url}/#{service_path}"
44
+ api_url = "#{GarnetClient.api_base_url}#{service_path}"
45
45
  headers = GarnetClient.response_headers
46
46
  html_content = ''
47
47
  html_result = ''
@@ -1,3 +1,3 @@
1
1
  module GarnetClient
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garnet_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - tarzansos
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty