我有这个错误
没有获得EIP-1559的费用
在运行此命令之后
伪造脚本/BricksCore.s.sol:BricksCoreScript --rpc-url $POLYGON_ZKEVM_RPC_URL --广播
contract BricksCoreScript is Script {
function run() external {
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(deployerPrivateKey);
BricksCore bricksCore = new BricksCore();
ProxyAdmin proxyAdmin = new ProxyAdmin();
TransparentUpgradeableProxy transparentUpgradeableProxy = new TransparentUpgradeableProxy(
address(bricksCore),
address(proxyAdmin),
abi.encodeWithSignature("intialize()")
);
Pool pool = new Pool(address(transparentUpgradeableProxy));
vm.stopBroadcast();
}
}POLYGON_ZKEVM_RPC_URL=https://polygon-zkevm-testnet.rpc.thirdweb.com我的Polygon Zkevm帐户余额: 0.5 ETH
PS :部署在Ethereum测试网上非常完美。
发布于 2023-04-13 13:32:26
尝试在伪造脚本中添加后缀--legacy
https://ethereum.stackexchange.com/questions/147942
复制相似问题