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

Reproduce transaction FRcorNvFojoxBrdiVMTy9gRD3H8EYXXKau4feevMZmFV #498

Merged
merged 1 commit into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions engine-tests/src/tests/repro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@ fn repro_8ru7VEA() {
});
}

/// This test reproduces a transaction from mainnet:
/// https://explorer.mainnet.near.org/transactions/FRcorNvFojoxBrdiVMTy9gRD3H8EYXXKau4feevMZmFV
/// It hit the gas limit at the time of its execution (engine v2.5.2 after 300 Tgas limit increase).
/// The transaction performs some complex defi interaction (description from the user):
/// 1. It sell 30% BSTN to NEAR, and mint cNEAR
/// 2. It sells 35% BSTN to NEAR, and make NEAR-BSTN LP token
/// 3. Deposit LP token created from step2 to Trisolaris farm
#[allow(non_snake_case)]
#[test]
fn repro_FRcorNv() {
repro_common(ReproContext {
snapshot_path: "src/tests/res/aurora_state_FRcorNv.json",
block_index: 64328524,
block_timestamp: 1650960438774745116,
input_path: "src/tests/res/input_FRcorNv.hex",
evm_gas_used: 1239721,
near_gas_used: 245,
});
}

fn repro_common<'a>(context: ReproContext<'a>) {
let ReproContext {
snapshot_path,
Expand Down
1,021 changes: 1,021 additions & 0 deletions engine-tests/src/tests/res/aurora_state_FRcorNv.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions engine-tests/src/tests/res/input_FRcorNv.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f86d5d8088ffffffffffffffff94b6d6790e1235d16d3a783b9046ee0a151641feda80844641257d849c8a82c7a0eeb3ee82d97af1bc11342c76ba80e52c96a5926e647eb00921a03402408bec7da05116201b0c514cdbbeecd8a7c177b961d04e49535b5a2406b1a135c82c076778