Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfschoen committed Oct 6, 2024
1 parent 06c0367 commit 2e9badb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/hardhat/contracts/payWithEth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface SecretContract {
function pay(string calldata ref, uint256 amount) external returns (uint256);
function payWithReceipt(string calldata ref, uint256 amount, uint256 userPubkey) external returns (uint256);
function withdraw(string calldata secret, address withdrawalAddress) external returns (uint256);
function retreivePubkey() external returns (uint256);
function retrievePubkey() external returns (uint256);
}

/**
Expand All @@ -36,7 +36,7 @@ contract NunyaBusiness {
secretContract = SecretContract(_gateway);
// Lock secretContractPubkey to requestId so that only that request cn set it.
// TODO: make it better - if call fails, contract is stuck and needs redploy :P
secretContractPubkey = secretContract.retreivePubkey();
secretContractPubkey = secretContract.retrievePubkey();
}

modifier onlyGateway {
Expand Down Expand Up @@ -133,4 +133,4 @@ contract NunyaBusiness {
require(amount > 0, "Account not found or empty.");
withdrawalAddress.transfer(amount);
}
}
}

0 comments on commit 2e9badb

Please sign in to comment.