Skip to content

Commit

Permalink
Use correct coin type and network
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Dec 19, 2023
1 parent 91e3200 commit 8efb808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions packages/sdk/examples/create_nft_collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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)
Expand All @@ -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:
Expand Down Expand Up @@ -72,7 +70,7 @@ async function main() {
signature: userSign.signature,
publicKey: {
hex: userSign.publicKey,
network: network,
network: Network.RMS,
},
body: <any>nftLists,
});
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/examples/utils/secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

0 comments on commit 8efb808

Please sign in to comment.