Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bridge-ui-v2): amount input validation #14213

Merged
merged 27 commits into from
Jul 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor comment
  • Loading branch information
jscriptcoder committed Jul 19, 2023
commit 8d5fbec53a322d5bb1eeb164f532279698fcc589
3 changes: 2 additions & 1 deletion packages/bridge-ui-v2/src/libs/bridge/ETHBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export class ETHBridge implements Bridge {
const [depositValue, callValue] =
to.toLowerCase() === owner.toLowerCase() ? [amount, BigInt(0)] : [BigInt(0), amount];

// If there is a processing fee
// If there is a processing fee, use the specified message gas limit
// if not called by the owner
const gasLimit = processingFee > 0 ? bridge.noOwnerGasLimit : BigInt(0);

const message: Message = {
Expand Down