Closed jmanywhere closed 1 year ago
which networks are still pre 1559 and which ones arent, do you know?
which networks are still pre 1559 and which ones arent, do you know?
out of the ones we support, I think BSC may be the only one. But I am not sure about that.
i mean in BSC, is it both testnet and mainnet or just testnet?
i mean in BSC, is it both testnet and mainnet or just testnet?
think both
Environment information
ape
and plugin versions:What went wrong?
Tried to run a script on the bsc-testnet and all transactions failed using a loaded address. Please include information like:
ape run my_script --network bsc:testnet:https://data-seed-prebsc-1-s1.binance.org:8545
def main(): owner = accounts.load("dev_test") print(f"Owner'{owner.address}'") usdt = project.TestToken.deploy("tUSDT", "TUSDT", sender=owner, publish=True)
DynamicFeeTransaction: chainId: 97 from: 0x7Ff20b4E1Ad27C5266a929FC87b00F5cCB456374 gas: 711654 nonce: 1211 value: 0 data: 0x608060...000000 type: 2 maxFeePerGas: 10000000000 maxPriorityFeePerGas: 10000000000 accessList: []
Sign: [y/N]: y Enter passphrase to unlock 'dev_test' []: Leave 'dev_test' unlocked? [y/N]: y DEBUG: Making request. Method: eth_sendRawTransaction DEBUG: Making request HTTP. URI: https://data-seed-prebsc-1-s1.binance.org:8545, Method: eth_sendRawTransaction DEBUG: Getting response HTTP. URI: https://data-seed-prebsc-1-s1.binance.org:8545, Method: eth_sendRawTransaction, Response: {'jsonrpc': '2.0', 'id': 13, 'error': {'code': -32000, 'message': 'invalid sender'}} ERROR: (VirtualMachineError) Traceback (most recent call last): File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/ape/api/providers.py", line 1141, in send_transaction txn_hash = self.web3.eth.send_raw_transaction(txn.serialize_transaction()) File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/web3/eth/eth.py", line 372, in send_raw_transaction return self._send_raw_transaction(transaction) File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/web3/module.py", line 68, in caller result = w3.manager.request_blocking( File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/web3/manager.py", line 232, in request_blocking return self.formatted_response( File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/web3/manager.py", line 205, in formatted_response raise ValueError(response["error"]) ValueError: {'code': -32000, 'message': 'invalid sender'}
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3460, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in
usdt = project.TestToken.deploy("tUSDT", "TUSDT", sender=owner)
File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/ape/contracts/base.py", line 1186, in deploy
receipt = kwargs["sender"].call(txn, **kwargs)
File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/ape/api/accounts.py", line 142, in call
return self.provider.send_transaction(signed_txn)
File "/Users/jmf/dev/apeEnv/lib/python3.10/site-packages/ape/api/providers.py", line 1153, in send_transaction
raise vm_err from err
ape.exceptions.VirtualMachineError: (-32000) invalid sender