Skip to content

Commit

Permalink
additional fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavStefanovic committed Jan 22, 2025
1 parent fbf4540 commit a6e0fa1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
1 change: 1 addition & 0 deletions contracts/interfaces/IGatewayStructs.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ interface IGatewayStructs {
error NotPredicateOrOwner();
error InvalidSignature();
error ZeroAddress();

error WrongValue(uint256 expected, uint256 received);
error BatchAlreadyExecuted();
error TransferFailed();
Expand Down
18 changes: 5 additions & 13 deletions test/fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ethers } from "hardhat";
import { BigNumberish } from "ethers";
import { alwaysTrueBytecode } from "./constants";
// import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";
import { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";

export async function deployGatewayFixtures() {
// Contracts are deployed using the first signer/account by default
Expand All @@ -23,18 +23,10 @@ export async function deployGatewayFixtures() {
const gatewayLogic = await Gateway.deploy();

// // deployment of contract proxy
const NativeTokenPredicateProxy = await ethers.getContractFactory(
"@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol:ERC1967Proxy"
);
const NativeTokenWalletProxy = await ethers.getContractFactory(
"@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol:ERC1967Proxy"
);
const ValidatorscProxy = await ethers.getContractFactory(
"@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol:ERC1967Proxy"
);
const GatewayProxy = await ethers.getContractFactory(
"@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol:ERC1967Proxy"
);
const NativeTokenPredicateProxy = await ethers.getContractFactory("ERC1967Proxy");
const NativeTokenWalletProxy = await ethers.getContractFactory("ERC1967Proxy");
const ValidatorscProxy = await ethers.getContractFactory("ERC1967Proxy");
const GatewayProxy = await ethers.getContractFactory("ERC1967Proxy");

const nativeTokenPredicateProxy = await NativeTokenPredicateProxy.deploy(
nativeTokenPredicateLogic.target,
Expand Down

0 comments on commit a6e0fa1

Please sign in to comment.