Call contract from contract with the same signature #301
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: cytadela8
Currently one can call contract from another by using an variable with type of that contract like:
But what if we want to call another instance of a contract with the same code. Following example will result in an error:
One has to use workaround like this:
We should make it so the workaround is not needed.
@UlfNorell @hanssv Are there any reasons for why it is not possible to call a different instance of the same contract? Was this banned on purpose? Or should it be allowed?
Created by: hanssv
I can't think of any reason and I think I remember us discussing adding it in the past - just never made it to the top of the list I guess 🤔
I guess the hard question would be to figure out a good name for the implictly defined type then.
Self
orThis
might be popular options 😅