Skip to content

Commit

Permalink
fix foundry_test ci failures
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Mar 20, 2024
1 parent 17989bf commit 199c576
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cadence/contracts/bridge/FlowEVMBridge.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ contract FlowEVMBridge : IFlowEVMNFTBridge {
// Otherwise, serialize the NFT
uri = SerializeNFT.serializeNFTMetadataAsURI(&token as &{NonFungibleToken.NFT})
}

// Lock the NFT & calculate the storage used by the NFT
let storageUsed = FlowEVMBridgeNFTEscrow.lockNFT(<-token)
// Calculate the bridge fee on current rates
Expand Down
1 change: 0 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ out = "./solidity/out"
libs = ["./solidity/lib"]
script = "./solidity/script"
test = "./solidity/test"
eth_rpc_url = "http://127.0.0.1:8545"

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
9 changes: 5 additions & 4 deletions solidity/test/FlowBridgeFactory.t.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import {Test, console2} from "forge-std/Test.sol";
import {Test} from "forge-std/Test.sol";

import {FlowBridgeFactory} from "../src/FlowBridgeFactory.sol";
import {FlowBridgedERC721} from "../src/FlowBridgedERC721.sol";

contract FlowBridgeFactoryTest is Test {
FlowBridgeFactory public factory;
FlowBridgedERC721 public deployedERC721Contract;
FlowBridgeFactory internal factory;
FlowBridgedERC721 internal deployedERC721Contract;

string name;
string symbol;
Expand All @@ -16,7 +17,7 @@ contract FlowBridgeFactoryTest is Test {
string contractURI;
address deployedERC721Address;

function setUp() public {
function setUp() public virtual {
factory = new FlowBridgeFactory();
name = "name";
symbol = "symbol";
Expand Down

0 comments on commit 199c576

Please sign in to comment.