Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
qalisander committed May 20, 2024
1 parent 56f09f3 commit 2abc5a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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... \
Expand Down
2 changes: 1 addition & 1 deletion integration/src/erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async fn mint() -> Result<()> {
let Infrastructure { alice, bob } = Infrastructure::<Erc20>::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);
Expand Down
2 changes: 1 addition & 1 deletion integration/src/infrastructure/erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2abc5a7

Please sign in to comment.