diff --git a/script/CallZkTLS.s.sol b/script/CallZkTLS.s.sol new file mode 100644 index 0000000..e2a4fe4 --- /dev/null +++ b/script/CallZkTLS.s.sol @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import { Script } from "forge-std/Script.sol"; +import "../src/PrimusZkTLS.sol"; + +contract CallZkTLS is Script { + function run() public { + uint256 senderPrivateKey = vm.envUint("PRIVATE_KEY"); + //address senderAddress = vm.addr(senderPrivateKey); + vm.startBroadcast(senderPrivateKey); + + PrimusZkTLS primusZkTLS = PrimusZkTLS(address(0x11701Cf8Df597668C8dCCdD67Fd0836fB8564f80)); + Attestor memory newUser = Attestor({ + attestorAddr: address(0xe02bD7a6c8aA401189AEBb5Bad755c2610940A73), + url: "https://primuslabs.org" + }); + primusZkTLS.setAttestor(newUser); + + vm.stopBroadcast(); + } +}