From 2abc5a79b50abe68ad1ff3ce289d62f5ecf28213 Mon Sep 17 00:00:00 2001 From: Alisander Qoshqosh Date: Mon, 20 May 2024 13:06:22 +0400 Subject: [PATCH] ++ --- integration/README.md | 7 ++++--- integration/src/erc20.rs | 2 +- integration/src/infrastructure/erc20.rs | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/integration/README.md b/integration/README.md index 48ce41ff4..5a668d02f 100644 --- a/integration/README.md +++ b/integration/README.md @@ -6,7 +6,8 @@ Deploy every contract from `./examples` directory and running integration tests. ### Against local nitro node -Set up first a local nitro node according to this [guide](https://github.com/OffchainLabs/nitro-testnode/blob/release/README.md) +Set up first a local nitro node according to +this [guide](https://github.com/OffchainLabs/nitro-testnode/blob/release/README.md) ```terminal # setup nitro test node in detached mode @@ -20,7 +21,7 @@ Set up first a local nitro node according to this [guide](https://github.com/Off ./test-node.bash script send-l2 --to address_0xF4EaCDAbEf3c8f1EdE91b6f2A6840bc2E4DD3526 --ethamount 10000 ``` -Run integration testing command from the project root: +Run integration testing command: ```terminal ./integration/test.sh @@ -30,7 +31,7 @@ Run integration testing command from the project root: `ALICE_PRIV_KEY` and `BOB_PRIV_KEY` should be valid funded wallets. `RPC_URL` should contain url of the stylus testnet. -Run this command from the project root: +Run this command: ```terminal ALICE_PRIV_KEY=0x... \ diff --git a/integration/src/erc20.rs b/integration/src/erc20.rs index 06199aa42..dc045d7d5 100644 --- a/integration/src/erc20.rs +++ b/integration/src/erc20.rs @@ -8,7 +8,7 @@ async fn mint() -> Result<()> { let Infrastructure { alice, bob } = Infrastructure::::new().await?; // TODO: have a nicer support for custom constructors let _ = alice - .constructor("MyErc20".to_string(), "MRC".to_string(), U256::from(10)) + .constructor("MyErc20".to_string(), "MRC".to_string(), U256::from(10), false) .ctx_send() .await?; let one = U256::from(1); diff --git a/integration/src/infrastructure/erc20.rs b/integration/src/infrastructure/erc20.rs index 8b49a4cc7..30d550a06 100644 --- a/integration/src/infrastructure/erc20.rs +++ b/integration/src/infrastructure/erc20.rs @@ -5,7 +5,7 @@ use crate::{infrastructure::*, link_to_crate}; abigen!( Erc20Token, r#"[ - function constructor(string memory name, string memory symbol, uint256 cap) external + function constructor(string memory name, string memory symbol, uint256 cap, bool paused) external function name() external view returns (string) function symbol() external view returns (string)