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 24df1fa commit 58a60f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 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 OVMGateway 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 @@ -48,7 +48,7 @@ contract Pi is OVMClient {
/**
* @dev Sends a request to calculate the value of PI with a specified number of digits.
* @param numDigits The number of digits to calculate for PI.
* @return requestId The ID of the request returned by the OVMTasks contract.
* @return requestId The ID of the request returned by the OVMGateway contract.
*/
function sendRequest(
uint256 numDigits
Expand All @@ -64,7 +64,7 @@ contract Pi is OVMClient {
}

/**
* @dev Sets the response data for a specific request. This function is called by the OVMTasks
* @dev Sets the response data for a specific request. This function is called by the OVMGateway
* contract.
* @param requestId The ID of the request.
* @param data The response data to be set.
Expand All @@ -73,7 +73,7 @@ contract Pi is OVMClient {
bytes32 requestId,
bytes calldata data
) external override recordResponse(requestId) onlyOVMGateway {
// parse and save the data fulfilled by the OVMTasks contract
// parse and save the data fulfilled by the OVMGateway contract
(bool success, string memory strPI) = _parseData(data);
if (success) {
_responseData[requestId] = strPI;
Expand Down

0 comments on commit 58a60f0

Please sign in to comment.