Skip to content

Commit

Permalink
Fix toNano calls
Browse files Browse the repository at this point in the history
  • Loading branch information
hrmon committed Jul 9, 2023
1 parent 014306d commit 012a558
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/admin/SourcesRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function ActionDialog({
<Button
text={"DOIT"}
onClick={() => {
requestTXN(address.toString(), toNano(0.01), action(value));
requestTXN(address.toString(), toNano("0.01"), action(value));
}}
/>
</DialogActions>
Expand Down
2 changes: 1 addition & 1 deletion src/components/admin/VerifierRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function UpdateVerifier({ verifier }: { verifier: Verifier }) {

requestTXN(
window.verifierRegistryAddress,
toNano(0.01),
toNano("0.01"),
updateVerifier({
id: sha256BN(val.name),
quorum: val.quorum,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/usePublishProof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function usePublishProof() {
sendTXN: () => {
sendTXN(
Address.parse(window.verifierRegistryAddress),
import.meta.env.DEV ? toNano(0.1) : toNano(0.5),
import.meta.env.DEV ? toNano("0.1") : toNano("0.5"),
Cell.fromBoc(Buffer.from(submitSourcesData!.result.msgCell!))[0],
);
},
Expand Down

0 comments on commit 012a558

Please sign in to comment.