mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
rpc: remove duplicated type field from gobject list-prepared (#3881)
* rpc: remove duplicated type field from gobject list-prepared * Remove one more "type"
This commit is contained in:
parent
3e65238a74
commit
4f077caf3b
@ -425,7 +425,6 @@ UniValue CGovernanceObject::ToJson() const
|
||||
obj.pushKV("collateralHash", GetCollateralHash().ToString());
|
||||
obj.pushKV("createdAt", GetCreationTime());
|
||||
obj.pushKV("revision", nRevision);
|
||||
obj.pushKV("type", nObjectType);
|
||||
UniValue data;
|
||||
if (!data.read(GetDataAsPlainString())) {
|
||||
data.clear();
|
||||
|
@ -14,7 +14,6 @@ def validate_object(prepared, rpc_prepared):
|
||||
assert_equal(prepared["collateralHash"], rpc_prepared["collateralHash"])
|
||||
assert_equal(prepared["createdAt"], rpc_prepared["createdAt"])
|
||||
assert_equal(prepared["revision"], rpc_prepared["revision"])
|
||||
assert_equal(prepared["type"], rpc_prepared["type"])
|
||||
assert_equal(prepared["hex"], rpc_prepared["data"]["hex"])
|
||||
del rpc_prepared["data"]["hex"]
|
||||
assert_equal(prepared["data"], rpc_prepared["data"])
|
||||
@ -43,7 +42,6 @@ class DashGovernanceTest (DashTestFramework):
|
||||
"collateralHash": collateral_hash,
|
||||
"createdAt": proposal_time,
|
||||
"revision": proposal_rev,
|
||||
"type": object_type,
|
||||
"hex": proposal_hex,
|
||||
"data": proposal_template,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user