Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gas test #834

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain-signatures/contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub use state::{
InitializingContractState, ProtocolContractState, ResharingContractState, RunningContractState,
};

const GAS_FOR_SIGN_CALL: Gas = Gas::from_tgas(250);
const GAS_FOR_SIGN_CALL: Gas = Gas::from_tgas(50);

// Register used to receive data id from `promise_await_data`.
const DATA_ID_REGISTER: u64 = 0;
Expand Down
5 changes: 3 additions & 2 deletions integration-tests/chain-signatures/tests/actions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use mpc_contract::RunningContractState;
use mpc_node::kdf::into_eth_sig;
use near_crypto::InMemorySigner;
use near_fetch::ops::AsyncTransactionStatus;
use near_workspaces::types::Gas;
use near_workspaces::types::NearToken;
use near_workspaces::Account;
use rand::Rng;
Expand Down Expand Up @@ -62,7 +63,7 @@ pub async fn request_sign(
.args_json(serde_json::json!({
"request": request,
}))
.max_gas()
.gas(Gas::from_tgas(50))
.deposit(NearToken::from_yoctonear(1))
.transact_async()
.await?;
Expand Down Expand Up @@ -212,7 +213,7 @@ pub async fn request_sign_non_random(
.args_json(serde_json::json!({
"request": request,
}))
.max_gas()
.gas(Gas::from_tgas(50))
.deposit(NearToken::from_yoctonear(1))
.transact_async()
.await
Expand Down
Loading