Skip to content

Commit

Permalink
Merge pull request #4 from primus-labs/develop
Browse files Browse the repository at this point in the history
add call script
  • Loading branch information
fksyuan authored Dec 10, 2024
2 parents cd5251a + 0adc184 commit 81795b9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions script/CallZkTLS.s.sol
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 81795b9

Please sign in to comment.