Skip to content

Conversation

aleksandrjet
Copy link

No description provided.

this.isLoading = true;

const items = await getItemHistory(this.address, options).then((res) => {
return res.slice(options.offset, options.offset + this.limit)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

часть с .then нужна только для мока

await this.loadData({ limit: this.limit,offset: 0 })

this.lastActivity = this.items.length > 0
? new Date().getTime() //FIX_ME this.items[0]?.timestamp
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

здесь я не понял, откуда брать timestamp для этого

await this.loadData({
limit: this.limit,
offset: this.items.length,
end_utime: this.lastActivity, // FIX_ME
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не уверен, нужно ли передавать end_utime в ручку с получением транзакций

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant