-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix AssetDescriptor #882
Fix AssetDescriptor #882
Conversation
Master, Shargon, fast as a bolt. |
Codecov Report
@@ Coverage Diff @@
## master #882 +/- ##
==========================================
+ Coverage 44.72% 44.93% +0.21%
==========================================
Files 177 177
Lines 12577 12577
==========================================
+ Hits 5625 5652 +27
+ Misses 6952 6925 -27
Continue to review full report at Codecov.
|
neo/Wallets/AssetDescriptor.cs
Outdated
@@ -19,7 +19,7 @@ public AssetDescriptor(UInt160 asset_id) | |||
sb.EmitAppCall(asset_id, "name"); | |||
script = sb.ToArray(); | |||
} | |||
ApplicationEngine engine = ApplicationEngine.Run(script); | |||
ApplicationEngine engine = ApplicationEngine.Run(script, extraGAS: 10_000_000); |
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.
what's this value?
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.
We can adjust it to a better one
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.
This seems arbitrary. Would setting test mode be a better approach?
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.
name()
may contain an infinite loop, and testMode
can cause the client to fail to jump out of an infinite loop.
* Fix * Better with fixed gas * Remove testnet * Fix Better with fixed gas Remove testnet * UT Asset Description * Reduce limit
Close #881