Skip to content

Commit 577750e

Browse files
committed
lower default and test gas budget for testnet compatibility
- reduces from 50_000_000 to 10_000_000
1 parent 5c92c4b commit 577750e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bindings/grpc/tests/api/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use tokio::process::Command;
4545
use tokio::sync::OnceCell;
4646
use tokio::task::JoinHandle;
4747
use tonic::transport::Uri;
48-
const TEST_GAS_BUDGET: u64 = 50_000_000;
48+
const TEST_GAS_BUDGET: u64 = 10_000_000;
4949

5050
type MemStorage = Storage<JwkMemStore, KeyIdMemstore>;
5151

bindings/wasm/identity_wasm/examples/src/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const IOTA_IDENTITY_PKG_ID = process.env.IOTA_IDENTITY_PKG_ID
1919
|| "0x7a67dd504eb1291958495c71a07d20985951648dd5ebf01ac921a50257346818";
2020
export const NETWORK_NAME_FAUCET = process.env.NETWORK_NAME_FAUCET || "localnet";
2121
export const NETWORK_URL = process.env.NETWORK_URL || "http://127.0.0.1:9000";
22-
export const TEST_GAS_BUDGET = BigInt(50_000_000);
22+
export const TEST_GAS_BUDGET = BigInt(10_000_000);
2323

2424
export function getMemstorage(): Storage {
2525
return new Storage(new JwkMemStore(), new KeyIdMemStore());

examples/utils/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use rand::distributions::DistString;
3232
use secret_storage::Signer;
3333
use serde_json::Value;
3434

35-
pub const TEST_GAS_BUDGET: u64 = 50_000_000;
35+
pub const TEST_GAS_BUDGET: u64 = 10_000_000;
3636

3737
pub type MemStorage = Storage<JwkMemStore, KeyIdMemstore>;
3838

identity_iota_core/src/iota_interaction_rust/iota_client_rust_sdk.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ impl IotaClientRustSdk {
499499
sender_address,
500500
vec![gas_coin.object_ref()],
501501
tx.clone(),
502-
50_000_000,
502+
10_000_000,
503503
gas_price,
504504
);
505505
let dry_run_gas_result = self

identity_iota_core/tests/e2e/common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static CLIENT: OnceCell<TestClient> = OnceCell::const_new();
5555
const SCRIPT_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/scripts/");
5656
const CACHED_PKG_ID: &str = "/tmp/iota_identity_pkg_id.txt";
5757

58-
pub const TEST_GAS_BUDGET: u64 = 50_000_000;
58+
pub const TEST_GAS_BUDGET: u64 = 10_000_000;
5959
pub const TEST_DOC: &[u8] = &[
6060
68, 73, 68, 1, 0, 131, 1, 123, 34, 100, 111, 99, 34, 58, 123, 34, 105, 100, 34, 58, 34, 100, 105, 100, 58, 48, 58,
6161
48, 34, 44, 34, 118, 101, 114, 105, 102, 105, 99, 97, 116, 105, 111, 110, 77, 101, 116, 104, 111, 100, 34, 58, 91,

0 commit comments

Comments
 (0)