Skip to content

Commit

Permalink
feat: Add hold token event for the EVM action - MEED-6663 - Meeds-io/…
Browse files Browse the repository at this point in the history
…MIPs#118 (#61)

This change will fix the evm action when editing the minimum amount.
  • Loading branch information
MayTekayaa committed Jul 5, 2024
1 parent b81681a commit 97d6b1e
Showing 1 changed file with 23 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,15 +384,29 @@ export default {
minAmount: minAmount
};
} else {
this.eventProperties = {
contractAddress: this.contractAddress,
blockchainNetwork: this.selected?.providerUrl,
networkId: this.selected?.networkId,
tokenName: this.erc20Token.name,
tokenSymbol: this.erc20Token.symbol,
tokenDecimals: this.erc20Token.decimals,
minAmount: minAmount
};
if (this.properties?.duration && this.properties?.frequency) {
this.eventProperties = {
contractAddress: this.contractAddress,
blockchainNetwork: this.selected?.providerUrl,
networkId: this.selected?.networkId,
tokenName: this.erc20Token.name,
tokenSymbol: this.erc20Token.symbol,
tokenDecimals: this.erc20Token.decimals,
minAmount: minAmount,
duration: this.properties?.duration,
frequency: this.properties?.frequency
};
} else {
this.eventProperties = {
contractAddress: this.contractAddress,
blockchainNetwork: this.selected?.providerUrl,
networkId: this.selected?.networkId,
tokenName: this.erc20Token.name,
tokenSymbol: this.erc20Token.symbol,
tokenDecimals: this.erc20Token.decimals,
minAmount: minAmount
};
}
}
document.dispatchEvent(new CustomEvent('event-form-filled', {detail: this.eventProperties}));
},
Expand Down

0 comments on commit 97d6b1e

Please sign in to comment.