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

Add testDepositBasicReproduction #144

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
2 changes: 0 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ solc = "0.8.25"
optimizer = true
optimizer_runs = 100000

fuzz.runs = 2056

remappings = [
"rain.factory/=lib/rain.factory/src/",
"rain.intorastring/=lib/rain.interpreter/lib/rain.intorastring/src/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,24 @@ contract ERC20PriceOracleReceiptVaultDepositTest is ERC20PriceOracleReceiptVault
vm.stopPrank();
}

function testDepositFlareFork() public {
// Contract address on Flare
address payable CONTRACT_ADDRESS = payable(0xf0363b922299EA467d1E9c0F9c37d89830d9a4C4);

// Sender address
address SENDER_ADDRESS = 0xf08bCbce72f62c95Dcb7c07dCb5Ed26ACfCfBc11;

vm.createSelectFork("https://flare-api.flare.network/ext/C/rpc", 31725348);

vm.startPrank(SENDER_ADDRESS);

// Load the contract interface
ERC20PriceOracleReceiptVault vault = ERC20PriceOracleReceiptVault(CONTRACT_ADDRESS);

// Make the deposit
vault.deposit(1000000000000000000, SENDER_ADDRESS, 0, hex"00");
vm.stopPrank();
}

fallback() external {}
}
Loading