Closed foreso-GitHub closed 3 years ago
同时参见#147
By design,如果发行代币时需要decimal起作用,需要加上symbol,比如:
{
"jsonrpc": "2.0",
"method": "jt_sendTransaction",
"params": [
{
"from": "jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh",
"secret": "snoPBjXtMeMyMHUVTgbuqAfg1SUTb",
"fee": "10",
"type": "IssueCoin",
"name": "TestCoin_SWT_213",
"symbol": "TSC_SWT_216",
"decimals": "4",
"total_supply": "100.02/TSC_SWT_216",
"local": true,
"flags": 0
}
],
"id": 1
}
发行代币时,decimals没有起作用。比如我现在发行一个代币,总量100,decimals为4,应该有100*104个最小单位,在balance和tx的amount应该是1000000。但实际发行后,amount只有100。 发送代币时,decimal是起作用的。
请求:
结果:
TestCase: