Skip to content

Commit

Permalink
add gas estimation checks
Browse files Browse the repository at this point in the history
  • Loading branch information
benisgold committed Sep 4, 2024
1 parent 8435c93 commit c24c272
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/screens/SendSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,15 @@ export default function SendSheet(props) {
const assetChainId = selected.chainId;
const currentProviderChainId = currentProvider._network.chainId;

if (assetChainId === currentChainId && currentProviderChainId === currentChainId && isValidAddress && !isEmpty(selected)) {
if (
!!accountAddress &&
amountDetails.assetAmount !== '' &&
Object.entries(selected).length &&
assetChainId === currentChainId &&
currentProviderChainId === currentChainId &&
isValidAddress &&
!isEmpty(selected)
) {
estimateGasLimit(
{
address: accountAddress,
Expand Down

0 comments on commit c24c272

Please sign in to comment.