Skip to content

Commit

Permalink
⚰️ Remove Starknet helper
Browse files Browse the repository at this point in the history
  • Loading branch information
cairoeth committed Mar 9, 2024
1 parent 0ba9207 commit 0c5ddd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion paradigmctf.py/ctf_server/backends/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from eth_account import Account
from eth_account.hdaccount import key_from_seed, seed_from_mnemonic
from foundry.anvil import anvil_setBalance
from starknet.anvil import starknet_setBalance, starknet_getVersion
from starknet.anvil import starknet_getVersion
from web3 import Web3


Expand Down
12 changes: 0 additions & 12 deletions paradigmctf.py/starknet/anvil.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import requests
from web3 import Web3
from web3.types import RPCResponse

Expand All @@ -10,14 +9,3 @@ def check_error(resp: RPCResponse):

def starknet_getVersion(web3: Web3):
check_error(web3.provider.make_request("starknet_specVersion", []))


def starknet_setBalance(
web3: Web3,
addr: str,
balance: int,
):
requests.post(web3.provider.endpoint_uri + '/mint', json={
'address': addr,
'amount': balance
})

0 comments on commit 0c5ddd2

Please sign in to comment.