Skip to content

Commit

Permalink
Deployment test for BiconomySponsorshipPaymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaanshK committed Jun 27, 2024
1 parent 659b7e3 commit 967379c
Show file tree
Hide file tree
Showing 2 changed files with 631 additions and 62 deletions.
19 changes: 13 additions & 6 deletions test/foundry/SponsorshipPaymasterWithPremium.t.sol
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.26;

import { Test } from "forge-std/src/Test.sol";
import { Vm } from "forge-std/src/Vm.sol";
import { console2 } from "forge-std/src/Console2.sol";

import { BiconomySponsorshipPaymaster } from "../../contracts/sponsorship/SponsorshipPaymasterWithPremium.sol";
import { NexusTestBase } from "./base/NexusTestBase.sol";

import { BiconomySponsorshipPaymaster } from "../../contracts/sponsorship/SponsorshipPaymasterWithPremium.sol";


contract SponsorshipPaymasterWithPremiumTest is NexusTestBase {
function setUp() public virtual override {
super.setUp();
function setUp() public {
setupTestEnvironment();
}


function testDeploy() external {
BiconomySponsorshipPaymaster testArtifact = new BiconomySponsorshipPaymaster(BOB_ADDRESS, ENTRYPOINT, ALICE_ADDRESS, CHARLIE_ADDRESS);
assertEq(address(testArtifact.owner()), BOB_ADDRESS);
assertEq(address(testArtifact.entryPoint()), ENTRYPOINT_ADDRESS);
assertEq(address(testArtifact.verifyingSigner()), ALICE_ADDRESS);
assertEq(address(testArtifact.feeCollector()), CHARLIE_ADDRESS);
}
}
Loading

0 comments on commit 967379c

Please sign in to comment.