Skip to content

Commit 951b07d

Browse files
author
Grigoriy Simonov
committed
log full result on signAndSend error
1 parent 72503d8 commit 951b07d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js-packages/playgrounds/unique.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ class UniqueUtil {
195195

196196
static extractCollectionIdFromCreationResult(creationResult: ITransactionResult): number {
197197
if(creationResult.status !== this.transactionStatus.SUCCESS) {
198-
const status = JSON.stringify((creationResult.result as any).status.toHuman());
199-
throw Error(`Unable to create collection! Status: ${status}`);
198+
const result = JSON.stringify((creationResult.result as any).toHuman());
199+
throw Error(`Unable to create collection! Status: ${result}`);
200200
}
201201

202202
let collectionId: number | null = null;

0 commit comments

Comments
 (0)