Skip to content

Commit

Permalink
Reduce xcc-router storage cost to 2 NEAR
Browse files Browse the repository at this point in the history
  • Loading branch information
birchmd committed Aug 5, 2022
1 parent 2b27c8e commit 0248312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions engine-tests/src/test_utils/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::process::Command;
pub fn compile<P: AsRef<Path>>(source_path: P) {
let output = Command::new("cargo")
.current_dir(source_path)
.env("RUSTFLAGS", "-C link-arg=-s")
.args(&["build", "--target", "wasm32-unknown-unknown", "--release"])
.output()
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion engine/src/xcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub const CODE_KEY: &[u8] = b"router_code";
pub const VERSION_UPDATE_GAS: NearGas = NearGas::new(5_000_000_000_000);
pub const INITIALIZE_GAS: NearGas = NearGas::new(5_000_000_000_000);
/// Amount of NEAR needed to cover storage for a router contract.
pub const STORAGE_AMOUNT: Yocto = Yocto::new(4_000_000_000_000_000_000_000_000);
pub const STORAGE_AMOUNT: Yocto = Yocto::new(2_000_000_000_000_000_000_000_000);

/// Type wrapper for version of router contracts.
#[derive(
Expand Down

0 comments on commit 0248312

Please sign in to comment.