Skip to content

Commit 0191405

Browse files
committed
f: feat: add script to create input and internals of gobject prepare
1 parent 99cc17f commit 0191405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/gobject-pre-prepare.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ async function main() {
4141
let selected = DashGov.selectEstimates(estimates, startPeriod, endPeriod);
4242
let gobjData = DashGov.proposal.draftJson(selected, {
4343
name,
44-
url,
4544
payment_address,
4645
payment_amount,
46+
url,
4747
});
4848

4949
let now = Date.now();
@@ -53,8 +53,8 @@ async function main() {
5353
let gobjCollateralBytes = DashGov.serializeForCollateralTx(gobj);
5454
let gobjCollateralHex = DashGov.utils.bytesToHex(gobjCollateralBytes);
5555

56-
let gobjHashBytes = await DashGov.proposal.doubleSha256(gobjCollateralBytes);
57-
let gobjId = DashGov.utils.bytesToHex(gobjHashBytes);
56+
let gobjHashBytes = await DashGov.utils.doubleSha256(gobjCollateralBytes);
57+
let gobjId = DashGov.utils.hashToId(gobjHashBytes);
5858

5959
console.log(
6060
"gobject prepare",

0 commit comments

Comments
 (0)