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

eth_sandbox from paradigm-ctf-infrastructure not compatible with CTF 2021 #23

Open
0xYYY opened this issue Aug 22, 2022 · 1 comment
Open

Comments

@0xYYY
Copy link

0xYYY commented Aug 22, 2022

Issue

Run the babyrev challenge, nc babyrev 31337 31338, then connecting to it with nc localhost 31337 will encounter the following error:

Traceback (most recent call last):
  File "/home/ctf/chal.py", line 5, in <module>
    eth_sandbox.new_launch_instance_action(deploy_value=Web3.toWei(50, 'ether')),
TypeError: new_launch_instance_action() got an unexpected keyword argument

Cause

I believe the commit 46974f8 updated the infra to build images with the code from https://github.com/paradigmxyz/paradigm-ctf-infrastructure, but the eth_sandbox package there is not compatible with 2021 CTF.

chal.py in babyrev:

eth_sandbox.run_launcher([
eth_sandbox.new_launch_instance_action(deploy_value=Web3.toWei(50, 'ether')),
eth_sandbox.new_get_flag_action()
])

Signature of eth_sandbox.new_launch_instance_action in paradigm-ctf-infrastructure

def new_launch_instance_action(
    do_deploy: Callable[[Web3, str], str],
):
@popelev
Copy link

popelev commented Sep 5, 2022

same issue for "bank"

Traceback (most recent call last):
  File "/home/ctf/chal.py", line 5, in <module>
    eth_sandbox.new_launch_instance_action(deploy_value=Web3.toWei(50, 'ether')),
TypeError: new_launch_instance_action() got an unexpected keyword argument 'deploy_value'

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

No branches or pull requests

2 participants