Skip to content

Commit

Permalink
revert type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
45930 committed Oct 14, 2024
1 parent 46e7a8c commit d057138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/lib/mina/actions/offchain-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ function OffchainState<
keyType: undefined,
valueType: type,
key: undefined,
value: ProvableType.get(type).fromValue(value),
value: type.fromValue(value),
});

// push action on account update
Expand All @@ -321,7 +321,7 @@ function OffchainState<
keyType: undefined,
valueType: type,
key: undefined,
value: ProvableType.get(type).fromValue(to),
value: type.fromValue(to),
previousValue: optionType.fromValue(from),
});

Expand Down Expand Up @@ -358,7 +358,7 @@ function OffchainState<
keyType,
valueType,
key,
value: ProvableType.get(valueType).fromValue(value),
value: valueType.fromValue(value),
});

// push action on account update
Expand All @@ -373,7 +373,7 @@ function OffchainState<
keyType,
valueType,
key,
value: ProvableType.get(valueType).fromValue(to),
value: valueType.fromValue(to),
previousValue: optionType.fromValue(from),
});

Expand Down
2 changes: 1 addition & 1 deletion src/lib/proof-system/zkprogram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ function isProvable(type: unknown): type is ProvableType<unknown> {
(typeof type_ === 'function' || typeof type_ === 'object') &&
type_ !== null &&
['toFields', 'fromFields', 'sizeInFields', 'toAuxiliary'].every(
(s) => s in (type_ as {'toFields': unknown, 'fromFields': unknown, 'sizeInFields': unknown, 'toAuxiliary': unknown})
(s) => s in type_
)
);
}
Expand Down

0 comments on commit d057138

Please sign in to comment.