Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Hannan <[email protected]>
  • Loading branch information
sisyphusSmiling and joshuahannan authored Apr 26, 2024
1 parent c200f7a commit f936101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cadence/contracts/bridge/FlowEVMBridgeUtils.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ contract FlowEVMBridgeUtils {
let identifier = forAssetType.identifier
let cadenceAddress = FlowEVMBridgeUtils.getContractAddress(fromType: forAssetType)
?? panic("Could not derive contract address for token type: ".concat(identifier))
// Assign an asset symbol based on the contract name
// Initialize asset symbol which will be assigned later
// based on presence of asset-defined metadata
var symbol: String? = nil
// Borrow the ViewResolver to attempt to resolve the EVMBridgedMetadata view
let viewResolver = getAccount(cadenceAddress).contracts.borrow<&{ViewResolver}>(name: name)!
Expand Down

0 comments on commit f936101

Please sign in to comment.