功能参数如何影响气体成本?
假设我有一个函数:
function doSomething(bytes memory _data){
...
}
考虑到函数param _data的大小,气体成本如何增加? 它对_data的大小有限制吗?
Let's suppose I have a function:
function doSomething(bytes memory _data){
...
}
How does the gas cost increase given the size of the function param _data?
Does it has a limit on how big _data can be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看此链接 http://www.scs.stanford.edu/ 18AU-CS251/讲座/讲座10.pdf
在斯坦福大学的这次演讲中,它说越多的论点,它消耗的天然气越多。
check out this link http://www.scs.stanford.edu/18au-cs251/lectures/lecture10.pdf
In this lecture by Stanford, it says that the more the arguments, the more gas it consumes.