-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd728b6
commit 30c5056
Showing
5 changed files
with
42 additions
and
73 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 23 additions & 8 deletions
31
target_chains/ethereum/sdk/stylus/examples/function-calls/tests/function-calls.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
#![cfg(feature = "e2e")] | ||
|
||
use alloy::hex; | ||
use e2e::{receipt,ReceiptExt,Account}; | ||
use abi::FunctionCalls; | ||
use alloy::{ | ||
primitives::{uint, Address, U256}, | ||
sol, | ||
}; | ||
use e2e::{ | ||
receipt, send, watch, Account, EventExt, Panic, PanicCode, ReceiptExt, | ||
Revert, | ||
}; | ||
use eyre::Result; | ||
|
||
// use crate::FunctionCallsExample::constructorCall; | ||
|
||
mod abi; | ||
|
||
sol!("src/constructor.sol"); | ||
|
||
// // ============================================================================ | ||
// // Integration Tests: Function Calls | ||
// // ============================================================================ | ||
|
||
#[e2e::test] | ||
async fn constructs(alice: Account) -> Result<()> { | ||
let contract_addr = alice.as_deployer().deploy().await?.address()?; | ||
// // assert_eq!(true, true); | ||
// #[e2e::test] | ||
// async fn constructs(alice: Account) -> Result<()> { | ||
// let contract_addr = alice | ||
// .as_deployer() | ||
// .with_default_constructor::<constructorCall>() | ||
// .deploy() | ||
// .await? | ||
// .address()?; | ||
// // // assert_eq!(true, true); | ||
|
||
Ok(()) | ||
} | ||
// Ok(()) | ||
// } |
16 changes: 8 additions & 8 deletions
16
target_chains/ethereum/sdk/stylus/examples/proxy-calls/tests/proxy-calls.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
#![cfg(feature = "e2e")] | ||
|
||
use alloy::hex; | ||
use alloy::{hex, sol}; | ||
use e2e::{receipt,ReceiptExt,Account}; | ||
use eyre::Result; | ||
|
||
mod abi; | ||
|
||
|
||
sol!("src/constructor.sol"); | ||
// // ============================================================================ | ||
// // Integration Tests: Proxy Calls | ||
// // ============================================================================ | ||
|
||
#[e2e::test] | ||
async fn constructs(alice: Account) -> Result<()> { | ||
// let contract_addr = alice.as_deployer().deploy().await?.address()?; | ||
// // assert_eq!(true, true); | ||
// #[e2e::test] | ||
// async fn constructs(alice: Account) -> Result<()> { | ||
// // // let contract_addr = alice.as_deployer().deploy().await?.address()?; | ||
// // // // assert_eq!(true, true); | ||
|
||
Ok(()) | ||
} | ||
// Ok(()) | ||
// } |