Skip to content

Commit

Permalink
n3: update token provenance endpoint (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje authored Oct 31, 2023
1 parent ec2c3b7 commit 678e514
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/neo/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class NeoRESTApi {
tokenId : string,
network = 'mainnet'
): Promise<TokenProvenanceResponse> {
const method = 'nfi'
const method = 'token_provenance'
return await this.get(network, method, contract, tokenId)
}

Expand Down
1 change: 0 additions & 1 deletion src/tests/api/neo/neo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 678e514

Please sign in to comment.