Skip to content

Commit 25bb5ea

Browse files
committed
fix(docs): add uint128max const in code snippet
1 parent 6924e42 commit 25bb5ea

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/tutorials/webapp-1.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,19 +594,21 @@ import { Key } from "graz/dist/keplr";
594594
import { InstantiateMsg, StoreLimitsInput } from "@okp4/cognitarium-schema";
595595
import { Instantiate } from "./Instantiate";
596596

597+
const UINT128_MAX = "340282366920938463463374607431768211455"
598+
597599
export function InstantiateCognitarium({ codeId }: { codeId: number }) {
598600
const { data: account }: { data: Key | null } = useAccount();
599601

600602
const label: string = `cogniatarium-frontdemo-${new Date().valueOf()}`;
601603

602604
const limits: StoreLimitsInput = {
603-
max_byte_size: "340282366920938463463374607431768211455",
604-
max_insert_data_byte_size: "340282366920938463463374607431768211455",
605-
max_insert_data_triple_count: "340282366920938463463374607431768211455",
605+
max_byte_size: UINT128_MAX,
606+
max_insert_data_byte_size: UINT128_MAX,
607+
max_insert_data_triple_count: UINT128_MAX,
606608
max_query_limit: 30,
607609
max_query_variable_count: 30,
608-
max_triple_byte_size: "340282366920938463463374607431768211455",
609-
max_triple_count: "340282366920938463463374607431768211455",
610+
max_triple_byte_size: UINT128_MAX,
611+
max_triple_count: UINT128_MAX,
610612
};
611613

612614
const msg: InstantiateMsg = {

0 commit comments

Comments
 (0)