Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Vyper 中获取当前合约的地址。在坚固address(this)中使用。Vyper 中的等价物是什么。
address(this)
address myContractAddress; myContractAddress = address(this);
它只是self,如:
self
@public def get_address() -> address: return self