update_asset: can't update the asset without parameter core_exchange_rate, and core_exchange_rate must include asset BTS,
infact the core_exchange_rate update here is useless, it's depend on feed price.
unlocked >>> get_asset BETA
get_asset BETA
{
"id": "1.3.2",
"symbol": "BETA",
"precision": 4,
"issuer": "1.2.17",
"options": {
"max_supply": "1000000000000000",
"market_fee_percent": 0,
"max_market_fee": "1000000000000000",
"issuer_permissions": 511,
"flags": 16,
"core_exchange_rate": {
"base": {
"amount": 1,
"asset_id": "1.3.2"
},
"quote": {
"amount": 128,
"asset_id": "1.3.1"
}
},
"whitelist_authorities": [],
"blacklist_authorities": [],
"whitelist_markets": [],
"blacklist_markets": [],
"description": "",
"extensions": []
},
"dynamic_asset_data_id": "2.3.2",
"bitasset_data_id": "2.4.1"
}
unlocked >>> update_asset BETA null {"flags": 0, "issuer_permissions": 511, "core_exchange_rate": {"base": {"amount": 1,"asset_id": "1.3.2" }, "quote": { "amount": 128$ "asset_id": "1.3.1" }}} true
update_asset BETA null {"flags": 0, "issuer_permissions": 511, "core_exchange_rate": {"base": {"amount": 1,"asset_id": "1.3.2" }, "quote": { "amount": 128, "asset_id": "1.3.1" }}} true
10 assert_exception: Assert Exception
core_exchange_rate.base.asset_id.instance.value == 0 || core_exchange_rate.quote.asset_id.instance.value == 0:
{}
th_a asset_ops.cpp:216 validate
{"symbol":"BETA","new_issuer":null,"new_options":{"max_supply":"1000000000000000","market_fee_percent":0,"max_market_fee":"1000000000000000","issuer_permissions":51
1,"flags":0,"core_exchange_rate":{"base":{"amount":1,"asset_id":"1.3.2"},"quote":{"amount":128,"asset_id":"1.3.1"}},"whitelist_authorities":[],"blacklist_authorities":[
],"whitelist_markets":[],"blacklist_markets":[],"description":"","extensions":[]},"broadcast":true}
th_a wallet.cpp:1107 update_asset