Skip to content

Commit

Permalink
Remove unused imports. Fix tests (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiseln authored May 31, 2024
1 parent 7dfa6bf commit b600af2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions erc20-bridge-token/contracts/BridgeTokenFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -22,9 +19,6 @@ contract BridgeTokenFactory is
AccessControlUpgradeable,
SelectivePausableUpgradable
{
using Borsh for Borsh.Data;
using SafeERC20 for IERC20;

enum WhitelistMode {
NotInitialized,
Blocked,
Expand Down
2 changes: 1 addition & 1 deletion erc20-bridge-token/test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit b600af2

Please # to comment.