Skip to content

Commit

Permalink
Add condition when creating NFT.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Oct 8, 2024
1 parent 775fee6 commit 0549248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/contracts/NFTFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ export class NftFactory extends SmartContractWithAddress {
try {
const tx = await sendTx(
estGas,
this.config.confidentialEVM === true &&
this.config &&
'confidentialEVM' in this.config &&
this.config.confidentialEVM === true &&
[SAPPHIRE_MAINNET_NETWORK_ID, SAPPHIRE_TESTNET_NETWORK_ID].includes(chainId)
? sapphire.wrap(this.signer)
: this.signer,
Expand Down

0 comments on commit 0549248

Please sign in to comment.