mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 07:27:55 +00:00
adjust genesis value generation scripts to output entries array + add script to derive encoded call
This commit is contained in:
@@ -45,10 +45,10 @@ fs.readFile(input, "utf8", (err, data) => {
|
||||
|
||||
const spec = JSON.parse(data);
|
||||
|
||||
const genesis = Object.fromEntries(
|
||||
const genesis =
|
||||
Object.entries(spec.genesis.raw.top).filter(
|
||||
([key, value]) => !startsWith(key, filter_prefixes)
|
||||
)
|
||||
);
|
||||
);
|
||||
|
||||
fs.writeFileSync(output, JSON.stringify(genesis));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user