Skip to content

Commit

Permalink
don't use from_pool in setup (tokens auto-mint to sender)
Browse files Browse the repository at this point in the history
- need to enable from_pool in [[create]] steps too before this will work
  • Loading branch information
zeroXbrock committed Dec 19, 2024
1 parent c71444e commit a8f7470
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scenarios/univ2ConfigTest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ bytecode = "0x608060405234801561001057600080fd5b506040516104d13803806104d1833981

### setup contracts

# TODO: enable from_pool for [[create]] steps too

## weth deposits ###############################################################

[[setup]]
Expand Down Expand Up @@ -207,7 +209,7 @@ args = [
[spam.tx]
kind = "uniswap_v2_swap_weth-testToken"
to = "{unicheat}"
from_pool = "pool1"
from = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
signature = "function swap(address tokenIn, address tokenOut, uint256 amountIn) public"
args = [
"{weth}",
Expand All @@ -220,7 +222,7 @@ args = [
[spam.tx]
kind = "uniswap_v2_swap_testToken-weth"
to = "{unicheat}"
from_pool = "pool2"
from = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
signature = "function swap(address tokenIn, address tokenOut, uint256 amountIn) public"
args = [
"{testToken}",
Expand All @@ -233,7 +235,7 @@ args = [
[spam.tx]
kind = "uniswap_v2_swap_weth-testToken2"
to = "{unicheat}"
from_pool = "pool3"
from = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
signature = "function swap(address tokenIn, address tokenOut, uint256 amountIn) public"
args = [
"{weth}",
Expand All @@ -246,7 +248,7 @@ args = [
[spam.tx]
kind = "uniswap_v2_swap_testToken2-weth"
to = "{unicheat}"
from_pool = "pool4"
from = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
signature = "function swap(address tokenIn, address tokenOut, uint256 amountIn) public"
args = [
"{testToken2}",
Expand All @@ -259,7 +261,7 @@ args = [
[spam.tx]
kind = "uniswap_v2_swap_testToken-testToken2"
to = "{unicheat}"
from_pool = "pool5"
from = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
signature = "function swap(address tokenIn, address tokenOut, uint256 amountIn) public"
args = [
"{testToken}",
Expand All @@ -272,7 +274,7 @@ args = [
[spam.tx]
kind = "uniswap_v2_swap_testToken2-testToken"
to = "{unicheat}"
from_pool = "pool6"
from = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
signature = "function swap(address tokenIn, address tokenOut, uint256 amountIn) public"
args = [
"{testToken2}",
Expand Down

0 comments on commit a8f7470

Please sign in to comment.