有没有人知道为什么下面的代码不能与VYPER编译器进行混合编译?
@public
@constant
def hello() -> string[100]:
return "hello world"谢谢!
发布于 2021-05-13 19:08:09
一些我能看到的东西。
Vyper没有@public函数装饰器,也没有@constant函数装饰器。
见装饰者参考。
String类型必须大写。(大写S.)
该文件汇编如下:
@external
@pure
def hello() -> String[100]:
return "hello world"https://ethereum.stackexchange.com/questions/98882
复制相似问题