Skip to content

Commit

Permalink
Add confidential EVM flag when creating a datatoken 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacarmina committed Oct 3, 2024
1 parent fdfe741 commit d2cc8f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/contracts/NFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
calculateActiveTemplateIndex,
getOceanArtifactsAdressesByChainId
} from '../utils/Asset'
import * as sapphire from '@oasisprotocol/sapphire-paratime'

export class Nft extends SmartContract {
getDefaultAbi() {
Expand Down Expand Up @@ -44,6 +45,7 @@ export class Nft extends SmartContract {
feeToken: string,
feeAmount: string,
cap: string,
confidentialEVM: boolean = false,
name?: string,
symbol?: string,
templateIndex?: number,
Expand Down Expand Up @@ -104,7 +106,7 @@ export class Nft extends SmartContract {

const tx = await sendTx(
estGas,
this.signer,
confidentialEVM === true ? sapphire.wrap(this.signer) : this.signer,
this.config?.gasFeeMultiplier,
nftContract.createERC20,
templateIndex,
Expand Down

0 comments on commit d2cc8f9

Please sign in to comment.