lib/garnet_client/service.rb in garnet_client-0.1.7 vs lib/garnet_client/service.rb in garnet_client-0.1.8
- old
+ new
@@ -22,12 +22,13 @@
end
# 发送一笔转账
def self.tx_transfer(coin_type, source_id, from, to, value)
service_path = "/tx/#{coin_type}/transfer"
+ from_address = from.nil? ? '' : from
post_params = {
"source_id" => source_id,
- "from" => from,
+ "from" => from_address,
"to" => to,
"value" => value
}
# 调用查询接口