From 678e51431c4a56e07da07c77be173f9383aaff33 Mon Sep 17 00:00:00 2001 From: ixje Date: Tue, 31 Oct 2023 15:31:09 +0100 Subject: [PATCH] n3: update token provenance endpoint (#27) --- src/api/neo/rest.ts | 2 +- src/tests/api/neo/neo.test.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/neo/rest.ts b/src/api/neo/rest.ts index 2101edb..1cc4927 100644 --- a/src/api/neo/rest.ts +++ b/src/api/neo/rest.ts @@ -149,7 +149,7 @@ export class NeoRESTApi { tokenId : string, network = 'mainnet' ): Promise { - const method = 'nfi' + const method = 'token_provenance' return await this.get(network, method, contract, tokenId) } diff --git a/src/tests/api/neo/neo.test.ts b/src/tests/api/neo/neo.test.ts index 76b874a..a5e40cb 100644 --- a/src/tests/api/neo/neo.test.ts +++ b/src/tests/api/neo/neo.test.ts @@ -177,7 +177,6 @@ describe('neo sdk', () => { it('should get the token provenance', async () => { const res = await NeoRest.tokenProvenance('0x904deb56fdd9a87b48d89e0cc0ac3415f9207840', '31') const stub = res[0] - console.log(stub) assert.equal(JSON.stringify(stub), JSON.stringify({ blockheight: 3344359, timestamp: 1682461762,