From aa4442f86082cd04d7fde3253a670c30076b6bbd Mon Sep 17 00:00:00 2001 From: bruno bruno Date: Wed, 29 Mar 2023 14:48:17 +1100 Subject: [PATCH] GMS-512: improves example for get mint --- examples/getMint.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/getMint.ts b/examples/getMint.ts index d762dd77..1fd1daba 100644 --- a/examples/getMint.ts +++ b/examples/getMint.ts @@ -10,7 +10,10 @@ import { Config, ImmutableX } from '@imtbl/core-sdk'; id: '', }); - console.log('getMintResponse', JSON.stringify(getMintResponse)); + // getMintResponse will be an array containing only one result + const mintResult = getMintResponse[0]; + + console.log('getMintResponse', JSON.stringify(mintResult)); } catch (err) { console.error(err); process.exit(1);