Skip to content

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

@0xYYY

Description

@0xYYY

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],
):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions