Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use evm_rpc_types in Rust E2E canister #295

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

rvanasa
Copy link
Collaborator

@rvanasa rvanasa commented Oct 2, 2024

e2e/rust/src/main.rs Outdated Show resolved Hide resolved
@rvanasa rvanasa changed the title Use evm_rpc_types in Rust E2E canister refactor;se evm_rpc_types in Rust E2E canister Oct 2, 2024
@rvanasa rvanasa changed the title refactor;se evm_rpc_types in Rust E2E canister refactor: use evm_rpc_types in Rust E2E canister Oct 2, 2024
@rvanasa rvanasa marked this pull request as ready for review October 2, 2024 17:54
Comment on lines +13 to +19
#[cfg(target_arch = "wasm32")]
const CANISTER_ID: Option<&str> = Some(std::env!(
"CANISTER_ID_EVM_RPC_STAGING",
"Unspecified canister ID environment variable"
));
#[cfg(not(target_arch = "wasm32"))]
const CANISTER_ID: Option<&str> = None;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removes the environment variable error in the IDE and when running cargo test, although maybe there is a nicer way to do this.

Copy link
Member

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR @rvanasa

Base automatically changed from 243-update-dependencies to main October 3, 2024 14:25
@gregorydemay gregorydemay force-pushed the evm-rpc-types-rust-e2e branch from 14295c5 to 5710470 Compare October 3, 2024 14:55
@gregorydemay gregorydemay merged commit 5f0221b into main Oct 3, 2024
3 checks passed
@gregorydemay gregorydemay deleted the evm-rpc-types-rust-e2e branch October 3, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants