Skip to content

Commit

Permalink
changed name
Browse files Browse the repository at this point in the history
  • Loading branch information
auralshin committed Dec 20, 2023
1 parent 8c33423 commit e489e44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 211 deletions.
2 changes: 1 addition & 1 deletion packages/payment-link/contracts/AdrasteiaZkPayment.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contract AdrasteiaZkPayment is
* @param paymentId The ID of the payment to send.
* @param proof zk-SNARK proof to be verified.
*/
function sendPayment(
function claimPayment(
uint256 paymentId,
uint256[] memory proof
) external nonReentrant whenNotPaused {
Expand Down
208 changes: 0 additions & 208 deletions packages/payment-link/contracts/xxxVerifier.sol

This file was deleted.

4 changes: 2 additions & 2 deletions packages/payment-link/test/AdrasteiaZkPayment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("AdrasteiaZkPayment", () => {
});
});

describe("sendPayment", () => {
describe("claimPayment", () => {
let zkProof: string[];
beforeEach(async () => {
const passcode = await passcodeHash(
Expand Down Expand Up @@ -131,7 +131,7 @@ describe("AdrasteiaZkPayment", () => {
console.log("zkProof", zkProof.length);

await expect(
adrasteiaZkPayment.connect(accounts[1]).sendPayment(1, zkProof)
adrasteiaZkPayment.connect(accounts[1]).claimPayment(1, zkProof)
)
.to.emit(adrasteiaZkPayment, "PaymentSent")
.withArgs(1);
Expand Down

0 comments on commit e489e44

Please sign in to comment.