foundry
foundry copied to clipboard
Deploying contract through Script to Besu Chain fails
Component
Forge
Have you ensured that all of these are up to date?
- [X] Foundry
- [X] Foundryup
What version of Foundry are you on?
forge 0.2.0 (8801156 2024-06-13T00:22:06.739865000Z)
What command(s) is the bug in?
forge script
Operating System
None
Describe the bug
- server returned an error response: error code -32600: 'to' must be a string
^^ when running forge script script/DeployAll.s.sol:DeployAllScript --rpc-url https://.... --broadcast -vvvv --unlocked --sender 0xd0d...
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
import {Script} from 'forge-std/Script.sol';
/*import contracts */
contract DeployAllScript is Script {
function run() public {
vm.startBroadcast();
/* contract names obfucated*/
LimitFeature LF = new LFContract();
EventEmitter EM = new EMContract();
GiftManager GM = new GMContract(address(EM));
TokenManager TM = new TMContract(address(GM));
Shop S = new SContract(address(TM), address(LF), address(EM));
vm.stopBroadcast();
}
}