Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Schalm <[email protected]>
  • Loading branch information
sisyphusSmiling and jordanschalm authored May 8, 2024
1 parent 142c0b5 commit 19ee59c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cadence/contracts/bridge/FlowEVMBridgeUtils.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ contract FlowEVMBridgeUtils {
access(all)
view fun isValidFlowAsset(type: Type): Bool {
let isFlowNFT = type.isSubtype(of: Type<@{NonFungibleToken.NFT}>())
let isFlowToken = type.isSubtype(of: Type<@{FungibleToken.Vault}>())
let isFlowFungibleToken = type.isSubtype(of: Type<@{FungibleToken.Vault}>())
return isFlowNFT != isFlowToken
}

Expand Down
3 changes: 2 additions & 1 deletion solidity/src/FlowBridgeDeploymentRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {FlowEVMDeploymentRegistry} from "./interfaces/FlowEVMDeploymentRegistry.

/**
* @title FlowBridgeDeploymentRegistry
* @dev A contract to manage the deployment of Flow EVM contracts and their association with Cadence contracts
* @dev A contract to manage the association between bridged Flow EVM contracts and a corresponding Cadence resource type.
* Deployment of new bridged Flow EVM contracts is handled in `FlowBridgeFactory`.
*/
contract FlowBridgeDeploymentRegistry is FlowEVMDeploymentRegistry, Ownable {
constructor() Ownable(msg.sender) {
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/FlowEVMBridgedERC20Deployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {FlowEVMBridgedERC20} from "./templates/FlowEVMBridgedERC20.sol";

/**
* @title FlowEVMBridgedERC20Deployer
* @dev A contract to deploy FlowEVMBridgedERC20 contracts with named associations to Cadence contracts. Only the
* @dev A contract to deploy FlowEVMBridgedERC20 contracts with named associations to Cadence resources types. Only the
* delegated deployer can deploy new contracts. This contract is used by the Flow EVM bridge to deploy and define
* bridged ERC20 tokens which are defined natively in Cadence.
*/
Expand Down
2 changes: 1 addition & 1 deletion solidity/src/FlowEVMBridgedERC721Deployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {FlowEVMBridgedERC721} from "./templates/FlowEVMBridgedERC721.sol";

/**
* @title FlowEVMBridgedERC721Deployer
* @dev A contract to deploy FlowEVMBridgedERC721 contracts with named associations to Cadence contracts. Only the
* @dev A contract to deploy FlowEVMBridgedERC721 contracts with named associations to Cadence resource types. Only the
* delegated deployer can deploy new contracts. This contract is used by the Flow EVM bridge to deploy and define
* bridged ERC721 tokens which are defined natively in Cadence.
*/
Expand Down

0 comments on commit 19ee59c

Please sign in to comment.