From d6dd296a967ab2a7dd96e402dd9723d8e4733542 Mon Sep 17 00:00:00 2001 From: Atlas Date: Tue, 26 Nov 2024 20:34:47 +0100 Subject: [PATCH] feat: update dep --- package-lock.json | 15 ++++++++------- package.json | 2 +- src/Pi.sol | 8 ++++---- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index b5d4261..96f069c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "": { "dependencies": { "@openzeppelin/contracts": "^5.0.2", - "@webisopen/ovm-contracts": "^1.3.0" + "@webisopen/ovm-contracts": "^1.4.0" } }, "node_modules/@openzeppelin/contracts": { @@ -15,9 +15,10 @@ "integrity": "sha512-ytPc6eLGcHHnapAZ9S+5qsdomhjo6QBHTDRRBFfTxXIpsicMhVPouPgmUPebZZZGX7vt9USA+Z+0M0dSVtSUEA==" }, "node_modules/@webisopen/ovm-contracts": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@webisopen/ovm-contracts/-/ovm-contracts-1.3.0.tgz", - "integrity": "sha512-ub7QEFCWeVgytb/ZOaDD8g/kSziU1w6vVsZs3p6JTo6JwbYO0AJESRtOGhZVblUslmOJGmpBH8G0WnPfqUfr2g==" + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@webisopen/ovm-contracts/-/ovm-contracts-1.4.0.tgz", + "integrity": "sha512-zJXq6kHomuitXN2StjFuLDfE0hzuKw+b7532UFS2H9un+ZDABRo65OlmWDC4OGcf8+zeeHyCpOKdKaADowwqMg==", + "license": "MIT" } }, "dependencies": { @@ -27,9 +28,9 @@ "integrity": "sha512-ytPc6eLGcHHnapAZ9S+5qsdomhjo6QBHTDRRBFfTxXIpsicMhVPouPgmUPebZZZGX7vt9USA+Z+0M0dSVtSUEA==" }, "@webisopen/ovm-contracts": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@webisopen/ovm-contracts/-/ovm-contracts-1.3.0.tgz", - "integrity": "sha512-ub7QEFCWeVgytb/ZOaDD8g/kSziU1w6vVsZs3p6JTo6JwbYO0AJESRtOGhZVblUslmOJGmpBH8G0WnPfqUfr2g==" + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@webisopen/ovm-contracts/-/ovm-contracts-1.4.0.tgz", + "integrity": "sha512-zJXq6kHomuitXN2StjFuLDfE0hzuKw+b7532UFS2H9un+ZDABRo65OlmWDC4OGcf8+zeeHyCpOKdKaADowwqMg==" } } } diff --git a/package.json b/package.json index e480d70..fd60445 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "@webisopen/ovm-contracts": "^1.3.0", + "@webisopen/ovm-contracts": "^1.4.0", "@openzeppelin/contracts": "^5.0.2" } } diff --git a/src/Pi.sol b/src/Pi.sol index 3320f55..ffdc40e 100644 --- a/src/Pi.sol +++ b/src/Pi.sol @@ -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"; @@ -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) {