diff --git a/erc20-bridge-token/contracts/BridgeTokenFactory.sol b/erc20-bridge-token/contracts/BridgeTokenFactory.sol index a602f12c..17e35448 100644 --- a/erc20-bridge-token/contracts/BridgeTokenFactory.sol +++ b/erc20-bridge-token/contracts/BridgeTokenFactory.sol @@ -2,14 +2,11 @@ pragma solidity ^0.8.24; import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; -import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import {IERC20} from "@openzeppelin/contracts/interfaces/IERC20.sol"; import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "rainbow-bridge-sol/nearprover/contracts/INearProver.sol"; import "rainbow-bridge-sol/nearprover/contracts/ProofDecoder.sol"; -import "rainbow-bridge-sol/nearbridge/contracts/Borsh.sol"; import "./ProofConsumer.sol"; import "./BridgeToken.sol"; @@ -22,9 +19,6 @@ contract BridgeTokenFactory is AccessControlUpgradeable, SelectivePausableUpgradable { - using Borsh for Borsh.Data; - using SafeERC20 for IERC20; - enum WhitelistMode { NotInitialized, Blocked, diff --git a/erc20-bridge-token/test/helpers.js b/erc20-bridge-token/test/helpers.js index c8dab52e..bcaefd1d 100644 --- a/erc20-bridge-token/test/helpers.js +++ b/erc20-bridge-token/test/helpers.js @@ -28,7 +28,7 @@ const RESULT_PREFIX_METADATA = Buffer.from("b315d4d6e8f235f5fabb0b1a0f118507f6c8 const createEmptyToken = async (nearTokenId, BridgeTokenFactory, BridgeTokenInstance) => { const { metadataProof, proofBlockHeight } = getMetadataProof(nearTokenId) - await BridgeTokenFactory.newBridgeToken(nearTokenId, borshifyOutcomeProof(metadataProof), proofBlockHeight) + await BridgeTokenFactory.newBridgeToken(borshifyOutcomeProof(metadataProof), proofBlockHeight) const tokenProxyAddress = await BridgeTokenFactory.nearToEthToken(nearTokenId) const token = BridgeTokenInstance.attach(tokenProxyAddress) return { tokenProxyAddress, token }