11// SPDX-License-Identifier: UNLICENSED
22pragma solidity ^ 0.8.20 ;
33
4- import {Test} from "forge-std/Test.sol " ;
4+ import {BURN_ADDRESS} from "@fvm-solidity/FVMActors.sol " ;
5+ import {MockFVMTest} from "@fvm-solidity/mocks/MockFVMTest.sol " ;
56import {ServiceProviderRegistry} from "../src/ServiceProviderRegistry.sol " ;
67import {ServiceProviderRegistryStorage} from "../src/ServiceProviderRegistryStorage.sol " ;
78import {ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol " ;
89import {IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol " ;
910
10- contract ServiceProviderRegistryFullTest is Test {
11+ contract ServiceProviderRegistryFullTest is MockFVMTest {
1112 ServiceProviderRegistry public implementation;
1213 ServiceProviderRegistry public registry;
1314
@@ -28,7 +29,8 @@ contract ServiceProviderRegistryFullTest is Test {
2829 bytes public encodedDefaultPDPData;
2930 bytes public encodedUpdatedPDPData;
3031
31- function setUp () public {
32+ function setUp () public override {
33+ super .setUp ();
3234 owner = address (this );
3335 provider1 = address (0x1 );
3436 provider2 = address (0x2 );
@@ -102,7 +104,7 @@ contract ServiceProviderRegistryFullTest is Test {
102104
103105 function testRegisterProvider () public {
104106 // Check burn actor balance before
105- uint256 burnActorBalanceBefore = registry. BURN_ACTOR () .balance;
107+ uint256 burnActorBalanceBefore = BURN_ADDRESS .balance;
106108
107109 vm.startPrank (provider1);
108110
@@ -214,7 +216,7 @@ contract ServiceProviderRegistryFullTest is Test {
214216 assertEq (datacenterValue, "EU-WEST " , "Product first value should be EU-WEST " );
215217
216218 // Verify fee was burned
217- uint256 burnActorBalanceAfter = registry. BURN_ACTOR () .balance;
219+ uint256 burnActorBalanceAfter = BURN_ADDRESS .balance;
218220 assertEq (burnActorBalanceAfter - burnActorBalanceBefore, REGISTRATION_FEE, "Fee should be burned " );
219221 }
220222
0 commit comments