-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
The gas storage is consumed both by the size of the parameters passed to the invoked SC function but also when using store and load
Given the function below
Function GasTest(someString: String) Uint64
1 STORE("test", someString)
2 RETURN 0
End Function The following call GasTest("hello") will consume 10 gas Storage. 5 due to the tx parameter and 5 due to the store
If I understand the need to limit the tx size, and that it is used to calculate the transaction fee, I suggest implementing an independent gas for the tx parameter simply called txGas
This will have several benefits:
- Fully utilize the gas storage maximum limit of 20k
- every existing project that requires storing large data inside the SC will benefit from it without having to change anything
- UPDATE_SC_CODE will be able to update up to 20kB smart contract.
I will come with a PR soon but wanted to share the idea first.
Let me know
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels