-
I am again confusing myself with Java because I have worked for 9 years in the Java ecosystem. By default, I should inherit the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
In Solidity, there is no such usage of The above ( |
Beta Was this translation helpful? Give feedback.
In Solidity, there is no such usage of
this
.this
, in Solidity, means the specific instance of the contract being referenced (as a contract can have multiple instances). On type castingthis
via the datatypeaddress
, we getaddress(this)
-- this means the address of the previous instance. Put simply,address(this)
is how a contract references itself (its address, whereasthis
for the instance).The above (
address(this)
) is precisely how we "pay" contracts.