fix(StatePart): Use stable JSON stringify for state hashing; update dependencies and tooling
This commit is contained in:
@@ -79,7 +79,7 @@ export class StatePart<TStatePartName, TStatePayload> {
|
||||
return;
|
||||
}
|
||||
const createStateHash = async (stateArg: any) => {
|
||||
return await plugins.smarthashWeb.sha256FromString(plugins.smartjson.stringify(stateArg));
|
||||
return await plugins.smarthashWeb.sha256FromString(plugins.smartjson.stableOneWayStringify(stateArg));
|
||||
};
|
||||
const currentHash = await createStateHash(this.stateStore);
|
||||
if (
|
||||
|
Reference in New Issue
Block a user