How to run a local EVM testnet?

could try everything :stuck_out_tongue: - looks like a conflict in the ENV parser, and the --features=local when generating the “network” object used with the put for local-evm - looks like its defaulting to “PAYMENT_TOKEN_ADDRESS_BUILD_TIME_VAL” so when calling get token balance, it can’t see any tokens as the contract address doesn’t match the one used in the genesis event in the local EVM testnet - also added some “” around EVM_NETWORK, who knows how it passes it :person_shrugging:

RPC_URL="http://localhost:4343/" PAYMENT_TOKEN_ADDRESS="0x5FbDB2315678afecb367f032d93F642f64180aa3" DATA_PAYMENTS_ADDRESS="0x8464135c8F25Da09e49BC8782676a84730C318bC" SECRET_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" EVM_NETWORK="local" cargo test --package=autonomi --features=local
3 Likes