diff --git a/cadence/contracts/bridge/FlowEVMBridge.cdc b/cadence/contracts/bridge/FlowEVMBridge.cdc index 9b22c09a..f41a76ed 100644 --- a/cadence/contracts/bridge/FlowEVMBridge.cdc +++ b/cadence/contracts/bridge/FlowEVMBridge.cdc @@ -741,6 +741,9 @@ contract FlowEVMBridge : IFlowEVMNFTBridge, IFlowEVMTokenBridge { contractURI = "data:application/json;utf8,{".concat(serializedDisplay).concat("}") } + // Ensure symbol is assigned before proceeding + assert(symbol != nil, message: "Symbol must be assigned before deploying ERC20 contract") + // Call to the factory contract to deploy an ERC20 & validate result let callResult: EVM.Result = FlowEVMBridgeUtils.call( signature: "deployERC20(string,string,string,string,string)",