-
Notifications
You must be signed in to change notification settings - Fork 34
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
Feature/upgrade lumos #387
base: main
Are you sure you want to change the base?
Conversation
merge from main repo.
beb486c
to
9abb302
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #387 +/- ##
=======================================
Coverage 65.48% 65.48%
=======================================
Files 6 6
Lines 226 226
Branches 48 48
=======================================
Hits 148 148
Misses 78 78 ☔ View full report in Codecov by Sentry. |
bb244d0
to
153527d
Compare
ebf7526
to
8660ce4
Compare
8660ce4
to
13f1ec1
Compare
202, 200, 125, 162, 19, 177, 84, | ||
182, 234, 225, 250, 79, 0, 118, | ||
228, 185, 55, 81, 252, 66, 178, | ||
228, 166, 244, 108 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the code hash instead of the type hash to make it keep the same between different devnets
|
||
toIndexerScript(): IndexerScript { | ||
return { code_hash: this.codeHash, args: this.args, hash_type: this.hashType }; | ||
return codeHash === script.codeHash && args === script.args && hashType === script.hashType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The args
might be an Ethereum checksum address, it would be more robust to compare them by serialized result
bytes.equal(codeHash, script.codeHash)
&& bytes.equal(args, script.args)
&& hashType === script.hashType
No description provided.