-
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
Why does ApplicationEngine.Run default to test mode? #1851
Comments
Agree. |
Yes, I think that we can remove the default value. |
As this method, how about renaming
|
Because in most cases we use test mode. |
I think we should use wallet balance instead of testmodegas, as in common sense the one who tests executing script locally will send corresponding transaction. Furthermore, a 20 gas testmodegas might not be enough for some cases. |
But this means you'll always return fault if you don't open your wallet when execution. It doesn't make sense. Virtual resource cost should not be the same value of actual wallet balance. If like that, you always need open wallet and have enough gas. |
Prior to #1819,
ApplicationEngine.Run
testMode parameter defaulted to false. Now, the gas parameter defaults to TestModeGas.Wouldn't it make more sense to default gas parameter to zero? Or remove the default entirely?
The text was updated successfully, but these errors were encountered: