Skip to content

Commit

Permalink
fix: correct gas values in ui
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Dec 20, 2024
1 parent f86ff67 commit 188d589
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/context/WalletsProvider/gnotest/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const useGnotestStore = create<GnotestState>((set, get) => ({
value: MsgSend.encode(msg).finish(),
})),
fee: {
gasFee: "1ugnot",
gasFee: "100000ugnot",
gasWanted: Long.fromNumber(1000000),
},
memo: "",
Expand Down Expand Up @@ -177,7 +177,7 @@ const useGnotestStore = create<GnotestState>((set, get) => ({
send,
{
gasWanted: Long.fromNumber(10000000),
gasFee: "1ugnot",
gasFee: "100000ugnot",
},
);

Expand All @@ -191,7 +191,7 @@ const useGnotestStore = create<GnotestState>((set, get) => ({
undefined,
{
gasWanted: Long.fromNumber(1000000),
gasFee: "1ugnot",
gasFee: "100000ugnot",
},
);
await wallet.callMethod(
Expand All @@ -202,7 +202,7 @@ const useGnotestStore = create<GnotestState>((set, get) => ({
undefined,
{
gasWanted: Long.fromNumber(1000000),
gasFee: "1ugnot",
gasFee: "100000ugnot",
},
);
await wallet.callMethod(
Expand All @@ -213,7 +213,7 @@ const useGnotestStore = create<GnotestState>((set, get) => ({
undefined,
{
gasWanted: Long.fromNumber(1000000),
gasFee: "1ugnot",
gasFee: "100000ugnot",
},
);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/screens/Projects/hooks/useEscrowContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const useEscrowContract = (
func: string,
args: string[],
send: string = "",
gasWanted: number = 2_000_000,
gasWanted: number = 5_000_000,
) => {
try {
if (!networkId) {
Expand All @@ -84,7 +84,7 @@ export const useEscrowContract = (
func,
args,
},
{ gasWanted },
{ gasWanted, gasFee: gasWanted / 10 },
);

return true;
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/gno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export const adenaDoContract = async (
const height = await client.getBlockNumber();
const req: RequestDocontractMessage = {
messages,
gasFee: opts?.gasFee === undefined ? 1 : opts.gasFee,
gasWanted: opts?.gasWanted === undefined ? 10000000 : opts.gasWanted,
gasFee: opts?.gasFee === undefined ? 2000000 : opts.gasFee,
gasWanted: opts?.gasWanted === undefined ? 20000000 : opts.gasWanted,
memo: opts?.memo,
};
const res = await adena.DoContract(req);
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/gnodao/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const adenaDeployGnoDAO = async (
files: [{ name: `${conf.name}.gno`, body: source }],
},
},
{ gasWanted: 20000000 },
{ gasWanted: 50000000, gasFee: 5000000 },
);
return pkgPath;
};

0 comments on commit 188d589

Please sign in to comment.