From 6ba78a04872312e71271633c577ca7b8dae05a15 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Thu, 7 Nov 2024 14:32:08 +0300 Subject: [PATCH] invalid gas limit error --- examples/nft/contracts/Universal.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/nft/contracts/Universal.sol b/examples/nft/contracts/Universal.sol index 82f192cb..f323f5f4 100644 --- a/examples/nft/contracts/Universal.sol +++ b/examples/nft/contracts/Universal.sol @@ -32,6 +32,7 @@ contract Universal is error TransferFailed(); error Unauthorized(); error InvalidAddress(); + error InvalidGasLimit(); mapping(address => bytes) public counterparty; @@ -49,6 +50,7 @@ contract Universal is ) ERC721(name, symbol) Ownable(owner) { if (gatewayAddress == address(0) || owner == address(0)) revert InvalidAddress(); + if (gas == 0) revert InvalidGasLimit(); gateway = GatewayZEVM(gatewayAddress); gasLimit = gas; }