foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Deploying contract through Script to Besu Chain fails

Open miketamis opened this issue 8 months ago • 4 comments

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();
  }
}

miketamis avatar Jun 13 '24 07:06 miketamis