Skip to content

Commit

Permalink
Fix deploy contract and create token testnets (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepimenta authored May 11, 2021
1 parent 6ab1eda commit 34664b0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/components/Nav/Main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,12 @@ const Main = props => {
// if approval data includes metaswap contract
// if destination address is metaswap contract
if (
to === swapsUtils.getSwapsContractAddress(props.chainId) ||
(data &&
data.substr(0, 10) === APPROVE_FUNCTION_SIGNATURE &&
decodeApproveData(data).spenderAddress?.toLowerCase() ===
swapsUtils.getSwapsContractAddress(props.chainId))
to &&
(to === swapsUtils.getSwapsContractAddress(props.chainId) ||
(data &&
data.substr(0, 10) === APPROVE_FUNCTION_SIGNATURE &&
decodeApproveData(data).spenderAddress?.toLowerCase() ===
swapsUtils.getSwapsContractAddress(props.chainId)))
) {
if (transactionMeta.origin === process.env.MM_FOX_CODE) {
autoSign(transactionMeta);
Expand Down

0 comments on commit 34664b0

Please sign in to comment.