From 8efb808fd62c400917f7c73f6e4d7894c5c951d3 Mon Sep 17 00:00:00 2001 From: Dr-Electron Date: Tue, 19 Dec 2023 23:12:09 +0100 Subject: [PATCH] Use correct coin type and network --- packages/sdk/examples/create_nft_collection.ts | 8 +++----- packages/sdk/examples/utils/secret.ts | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/sdk/examples/create_nft_collection.ts b/packages/sdk/examples/create_nft_collection.ts index 514535736a..267a1495a1 100644 --- a/packages/sdk/examples/create_nft_collection.ts +++ b/packages/sdk/examples/create_nft_collection.ts @@ -4,7 +4,6 @@ import { address } from './utils/secret'; import { walletSign } from './utils/utils'; async function main() { - const network = Network.RMS; let userSign = await walletSign(address.bech32, address); try { const projectAPIKey = Build5ApiKey[Build5.TEST]; @@ -15,7 +14,6 @@ async function main() { .substring(2, 5) .replace(/[0-9]/g, '') .toUpperCase(); - const availableFrom = Date.now(); const collection = await https(Build5.TEST) .project(projectAPIKey) .dataset(Dataset.COLLECTION) @@ -24,12 +22,12 @@ async function main() { signature: userSign.signature, publicKey: { hex: userSign.publicKey, - network: network, + network: Network.RMS, }, body: { name: collectionName + ' collection', description: collectionName + ' collection description', - availableFrom: availableFrom, + availableFrom: Date.now(), access: 0, category: 'COLLECTIBLE', bannerUrl: @@ -72,7 +70,7 @@ async function main() { signature: userSign.signature, publicKey: { hex: userSign.publicKey, - network: network, + network: Network.RMS, }, body: nftLists, }); diff --git a/packages/sdk/examples/utils/secret.ts b/packages/sdk/examples/utils/secret.ts index cdf25bbd23..fa060a0d16 100644 --- a/packages/sdk/examples/utils/secret.ts +++ b/packages/sdk/examples/utils/secret.ts @@ -7,6 +7,6 @@ export interface AddressDetails { export const address: AddressDetails = { mnemonic: 'laundry bar blind toy tag mask taxi senior twist life pair result endless sauce dizzy electric butter ice dentist check number spike orbit paper', - hex: '0x04c0dbd2d99a7efbbc622ae00a9d40c6cc12ad1b31868e339657bb69b3638d6c', - bech32: 'rms1qqzvpk7jmxd8a7auvg4wqz5agrrvcy4drvccdr3njetmk6dnvwxkc25x9uj', + hex: '0xd241396f6266124d877f255c4ed7f71ac936fd87bec1fba0c129c944cd4e8d4c', + bech32: 'rms1qrfyzwt0vfnpynv80uj4cnkh7udvjdhas7lvr7aqcy5uj3xdf6x5cha0xkv', };