Skip to content

Commit

Permalink
fix: change tgas for contract simple ts
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenary committed Jun 3, 2024
1 parent ab1eee7 commit 6e1cab3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contract-simple-ts/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "near-sdk-js";
import { AccountId } from "near-sdk-js/lib/types";

const FIVE_TGAS = BigInt("50000000000000");
const THIRTY_TGAS = BigInt("30000000000000");
const NO_DEPOSIT = BigInt(0);
const NO_ARGS = JSON.stringify({});

Expand All @@ -25,14 +25,14 @@ class CrossContractCall {
@call({})
query_greeting(): NearPromise {
const promise = NearPromise.new(this.hello_account)
.functionCall("get_greeting", NO_ARGS, NO_DEPOSIT, FIVE_TGAS)
.functionCall("get_greeting", NO_ARGS, NO_DEPOSIT, THIRTY_TGAS)
.then(
NearPromise.new(near.currentAccountId())
.functionCall(
"query_greeting_callback",
NO_ARGS,
NO_DEPOSIT,
FIVE_TGAS,
THIRTY_TGAS,
),
);

Expand All @@ -58,15 +58,15 @@ class CrossContractCall {
"set_greeting",
JSON.stringify({ greeting: new_greeting }),
NO_DEPOSIT,
FIVE_TGAS,
THIRTY_TGAS,
)
.then(
NearPromise.new(near.currentAccountId())
.functionCall(
"change_greeting_callback",
NO_ARGS,
NO_DEPOSIT,
FIVE_TGAS,
THIRTY_TGAS,
),
);

Expand Down

0 comments on commit 6e1cab3

Please sign in to comment.