Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: unnecessary call to arweave.networkInfo when block height is re… #71

Merged
merged 5 commits into from
Jan 3, 2022

Conversation

ppedziwiatr
Copy link
Contributor

…quest from client #70

@@ -86,7 +86,6 @@
"2caOW6ol9T8LHCMO8tVAx4GHRwv1q3fFc79KzKOtoww",
"HdZBZa0GfOEUYCubwvoSyxGUUgPmgy7RJb5l77T21bE",
"7Dp5r-UpZLDvHqsDbZbqWhCBwbYdJMKBuC3tFC-FF7U",
"YLVpmhSq5JmLltfg6R-5fL04rIRPrlSU22f6RQ6VyYE",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing. Slowing down the whole SDK just because of this one, abandoned contract, is not very wise :-)
original issue: ArweaveTeam/SmartWeave#92

@ppedziwiatr ppedziwiatr force-pushed the ppe/perf-opt branch 3 times, most recently from f58b651 to 8616257 Compare January 3, 2022 01:13
@@ -49,13 +51,13 @@ describe('readState', () => {
const contractTxId = 'CbGCxBJn6jLeezqDl1w3o8oCSeRCb-MmtZNKPodla-0';
const blockHeight = 707892;
const result = await readContract(arweave, contractTxId, blockHeight);
const resultString = JSON.stringify(result).trim();
const resultString = stringify(result).trim();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

for the t9T7DIOGxx4VWXoCEeYYarFYeERTpWIC1V3y-BPZgKE contract the JSON.stringify turned to be non-deterministic.

@ppedziwiatr ppedziwiatr merged commit 0624de4 into main Jan 3, 2022
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