Skip to content

Commit

Permalink
feat: update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlasoin committed Nov 26, 2024
1 parent 79c5fa5 commit d6dd296
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@webisopen/ovm-contracts": "^1.3.0",
"@webisopen/ovm-contracts": "^1.4.0",
"@openzeppelin/contracts": "^5.0.2"
}
}
8 changes: 4 additions & 4 deletions src/Pi.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ contract Pi is OVMClient {

/**
* @dev Constructor function for the PI contract.
* @param OVMTaskAddress The address of the OVMTask contract.
* @param OVMGatewayAddress The address of the OVMTask contract.
* @param admin The address of the admin.
*/
constructor(
address OVMTaskAddress,
address OVMGatewayAddress,
address admin
) OVMClient(OVMTaskAddress, admin) {
) OVMClient(OVMGatewayAddress, admin) {
// set specification
Specification memory spec;
spec.name = "ovm-cal-pi";
Expand Down Expand Up @@ -72,7 +72,7 @@ contract Pi is OVMClient {
function setResponse(
bytes32 requestId,
bytes calldata data
) external override recordResponse(requestId) onlyOVMTask {
) external override recordResponse(requestId) onlyOVMGateway {
// parse and save the data fulfilled by the OVMTasks contract
(bool success, string memory strPI) = _parseData(data);
if (success) {
Expand Down

0 comments on commit d6dd296

Please sign in to comment.