-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Disallow as_conversions (#561)
Fix feature gated import in hash precompile Change missed featured `into` to `try_into` birchmd fixes Cleaner usize conversion error Fix missing vec in hash Fix tests Fix V check Fix testnet env EVM account Change hex feature from alloc to std Improve u64 to u8 conversion in JSON Cargo fmt
- Loading branch information
1 parent
d13c3cd
commit c4d659b
Showing
32 changed files
with
261 additions
and
166 deletions.
There are no files selected for viewing
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,6 +1,6 @@ | ||
CARGO_FEATURES_BUILD = "testnet" | ||
RUSTC_FLAGS_BUILD = "-C link-arg=-s" | ||
NEAR_EVM_ACCOUNT = "aurora.test.near" | ||
WASM_FILE = "aurora-local.wasm" | ||
NEAR_CLI = "local-near" | ||
IS_PROD = false | ||
CARGO_FEATURES_BUILD="testnet" | ||
RUSTC_FLAGS_BUILD="-C link-arg=-s" | ||
NEAR_EVM_ACCOUNT="aurora.test.near" | ||
WASM_FILE="aurora-local.wasm" | ||
NEAR_CLI="local_near" | ||
IS_PROD=false |
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,9 +1,9 @@ | ||
CARGO_FEATURES_BUILD = "mainnet" | ||
CARGO_FEATURES_BUILD_TEST = "mainnet,integration-test" | ||
CARGO_FEATURES_TEST = "mainnet-test" | ||
RUSTC_FLAGS_BUILD = "-C link-arg=-s" | ||
NEAR_EVM_ACCOUNT = "aurora" | ||
WASM_FILE = "aurora-mainnet.wasm" | ||
WASM_FILE_TEST = "aurora-mainnet-test.wasm" | ||
NEAR_CLI = "near" | ||
IS_PROD = true | ||
CARGO_FEATURES_BUILD="mainnet" | ||
CARGO_FEATURES_BUILD_TEST="mainnet,integration-test" | ||
CARGO_FEATURES_TEST="mainnet-test" | ||
RUSTC_FLAGS_BUILD="-C link-arg=-s" | ||
NEAR_EVM_ACCOUNT="aurora" | ||
WASM_FILE="aurora-mainnet.wasm" | ||
WASM_FILE_TEST="aurora-mainnet-test.wasm" | ||
NEAR_CLI="near" | ||
IS_PROD=true |
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,9 +1,9 @@ | ||
CARGO_FEATURES_BUILD = "testnet" | ||
CARGO_FEATURES_BUILD_TEST = "testnet,integration-test" | ||
CARGO_FEATURES_TEST = "testnet-test" | ||
RUSTC_FLAGS_BUILD = "-C link-arg=-s" | ||
NEAR_EVM_ACCOUNT = "aurora" | ||
WASM_FILE = "aurora-testnet.wasm" | ||
WASM_FILE_TEST = "aurora-testnet-test.wasm" | ||
NEAR_CLI = "near" | ||
IS_PROD = false | ||
CARGO_FEATURES_BUILD="testnet" | ||
CARGO_FEATURES_BUILD_TEST="testnet,integration-test" | ||
CARGO_FEATURES_TEST="testnet-test" | ||
RUSTC_FLAGS_BUILD="-C link-arg=-s" | ||
NEAR_EVM_ACCOUNT="aurora" | ||
WASM_FILE="aurora-testnet.wasm" | ||
WASM_FILE_TEST="aurora-testnet-test.wasm" | ||
NEAR_CLI="near" | ||
IS_PROD=false |
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
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
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
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,9 +1,18 @@ | ||
use crate::prelude::Borrowed; | ||
use core::num::TryFromIntError; | ||
#[cfg(test)] | ||
use evm::Context; | ||
use evm_core::ExitError; | ||
|
||
#[cfg(test)] | ||
pub fn new_context() -> Context { | ||
Context { | ||
address: Default::default(), | ||
caller: Default::default(), | ||
apparent_value: Default::default(), | ||
} | ||
} | ||
|
||
pub fn err_usize_conv(_e: TryFromIntError) -> ExitError { | ||
ExitError::Other(Borrowed("ERR_USIZE_CONVERSION")) | ||
} |
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
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
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
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
Oops, something went wrong.