# PRIVATE_KEY = 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
PRIVATE_KEY = ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
RPC_URL = http://127.0.0.1:8545
SEPOLIA_RPC_URL = https://eth-mainnet.g.alchemy.com/v2/kfFP9EKIDXTP_9pAlUJvtA8vx9TyQGQf
当使用如上代码时,source .env会报出
PRIVATE_KEY: command not found
RPC_URL: command not found
SEPOLIA_RPC_URL: command not found
# PRIVATE_KEY = 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
PRIVATE_KEY=ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
RPC_URL=http://127.0.0.1:8545
SEPOLIA_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/kfFP9EKIDXTP_9pAlUJvtA8vx9TyQGQf
将空格删除后正常运行