The ArkProject Bridge: seamless transfer of NFTs between ETH L1 & Starknet L2. Smart contracts, user-friendly interface, secure & efficient solution. Experience the future of NFT ownership today
Implement Minimum Gas Validation and Message Cancellation with Unit Testing
Description
This PR fixes the lack of a minimum gas amount when making a cross-chain bridge by specifying a minimum value, which can be adjusted by the contract owner (team) as the gas situation changes.
Added custom error for minimum gas fee validation.
Specified a minimum gas fee for bridging, adjustable by the contract owner as the gas situation evolves.
Added a function to update the minimum gas and a function to get the current minimum gas.
Emitted the MinimumGasFeeUpdated event upon changes.
Added unit tests for the minimum gas requirement.
Added unit tests for updating the minimum gas.
Impact
This change does not introduce any breaking changes but improves the user experience (UX) of the bridge. It protects users from sending messages with insufficient fees.
Testing
Added new unit tests for minimum gas fee validation.
Added unit tests for updating the minimum gas amount.
Implement Minimum Gas Validation and Message Cancellation with Unit Testing
Description
This PR fixes the lack of a minimum gas amount when making a cross-chain bridge by specifying a minimum value, which can be adjusted by the contract owner (team) as the gas situation changes.
Related Issue
Resolves issue #231
Changes Made
Impact
This change does not introduce any breaking changes but improves the user experience (UX) of the bridge. It protects users from sending messages with insufficient fees.
Testing
Screenshot