Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Conversation

@liunina
Copy link
Contributor

@liunina liunina commented Nov 1, 2018

根据最新的ABI修改参数

var from: String = ""
var receiver: String = ""
var stakeNetQuantity: String = ""
var stakeCpuQuantity: String = ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这块 Codable 协议最后走的是 SnakeCase 的 keyEncodingStrategy,所以转换成 json 的时候会自动变成 stake_net_quantity 这样,在 Swift 中使用 stakeNetQuantity 更符合变量声明的标准。

if EOSRPC.endpoint != nil {
return EOSRPC.endpoint! + "/v1"
}
return "http://jungle.cryptolions.io:18888/v1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里没必要做改动。如果想要用自己的节点,设置 EOSRPC.endpont = "" 就可以了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants