Skip to content

Commit

Permalink
Merge branch 'docs-update' of https://github.com/MeshJS/mesh into doc…
Browse files Browse the repository at this point in the history
…s-update
  • Loading branch information
jinglescode committed Sep 4, 2024
2 parents 9e5b026 + 0861c13 commit 4c23fc6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/mesh-contract/src/escrow/offchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class MeshEscrowContract extends MeshTxInitiator {

constructor(inputs: MeshTxInitiatorInput) {
super(inputs);
this.mesh.setNetwork(inputs.networkId == 1 ? "mainnet" : "preprod");
this.mesh.setNetwork(inputs.networkId === 1 ? "mainnet" : "preprod");
}

initiateEscrow = async (escrowAmount: Asset[]): Promise<string> => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-contract/src/giftcard/offchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class MeshGiftCardContract extends MeshTxInitiator {
if (paramUtxo) {
this.paramUtxo = paramUtxo;
}
this.mesh.setNetwork(inputs.networkId == 1 ? "mainnet" : "preprod");
this.mesh.setNetwork(inputs.networkId === 1 ? "mainnet" : "preprod");
}

createGiftCard = async (
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-contract/src/hello-world/offchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class MeshHelloWorldContract extends MeshTxInitiator {

constructor(inputs: MeshTxInitiatorInput) {
super(inputs);
this.mesh.setNetwork(inputs.networkId == 1 ? "mainnet" : "preprod");
this.mesh.setNetwork(inputs.networkId === 1 ? "mainnet" : "preprod");
}

getScript = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-contract/src/marketplace/offchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class MeshMarketplaceContract extends MeshTxInitiator {
],
"JSON",
);
this.mesh.setNetwork(inputs.networkId == 1 ? "mainnet" : "preprod");
this.mesh.setNetwork(inputs.networkId === 1 ? "mainnet" : "preprod");
}

listAsset = async (asset: string, price: number) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-contract/src/payment-splitter/offchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class MeshPaymentSplitterContract extends MeshTxInitiator {
);
}

this.mesh.setNetwork(inputs.networkId == 1 ? "mainnet" : "preprod");
this.mesh.setNetwork(inputs.networkId === 1 ? "mainnet" : "preprod");
}

sendLovelaceToSplitter = async (lovelaceAmount: number): Promise<string> => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-contract/src/swap/offchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class MeshSwapContract extends MeshTxInitiator {
undefined,
inputs.networkId,
).address;
this.mesh.setNetwork(inputs.networkId == 1 ? "mainnet" : "preprod");
this.mesh.setNetwork(inputs.networkId === 1 ? "mainnet" : "preprod");
}

initiateSwap = async (
Expand Down
2 changes: 1 addition & 1 deletion packages/mesh-contract/src/vesting/offchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class MeshVestingContract extends MeshTxInitiator {

constructor(inputs: MeshTxInitiatorInput) {
super(inputs);
this.mesh.setNetwork(inputs.networkId == 1 ? "mainnet" : "preprod");
this.mesh.setNetwork(inputs.networkId === 1 ? "mainnet" : "preprod");
}

depositFund = async (
Expand Down

0 comments on commit 4c23fc6

Please sign in to comment.