20 lines
544 B
Solidity
20 lines
544 B
Solidity
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
pragma solidity ^0.8.0;
|
|
|
|
import {Script, console2} from "forge-std/Script.sol";
|
|
import {Prompter} from "../src/Prompter.sol";
|
|
|
|
contract CallContract is Script {
|
|
function run() public {
|
|
// Setup wallet
|
|
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
|
|
vm.startBroadcast(deployerPrivateKey);
|
|
|
|
Prompter prompter = Prompter(0x663F3ad617193148711d28f5334eE4Ed07016602);
|
|
|
|
prompter.promptLLM(vm.envString("prompt"));
|
|
|
|
vm.stopBroadcast();
|
|
}
|
|
}
|