-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No easy way of importing the StarknetMessaging
Interface
#603
Comments
This part is confusing me:
Are you referring to the |
Contract dependency summary
Simplification proposalCopied from Discord:
|
Hey @pscott I can't understand the following
Do you mean that you have a solidity contract and you want to invoke methods of MockStarknetMessaging contract? |
My bad, I wanted to write |
This would work, or maybe just creating a single file that takes all the external function of:
By having everything in a single file, it would make interacting with the contract much easier (though I agree it would be a messy file ...) |
Yes this is exactly what I was referring to. Interacting with the |
What I can suggest is using |
I believe the issue is if I wish to write But since this file starts with What would be nice is to have a simple, lean, interface file, that one can import and that has all the functions available to interact with the messaging contract |
Then you can omit |
In which case I also need to remove |
It's now easy to deploy a
StarknetMessaging
contract with.spawnVersion()
. Great idea!However, if one wants to interact with it in his own contract (example using
sendMessageToL2
), then one needs to import theMockStarknetMessaging.sol
.But importing this one implies import a whole bunch of other dependencies.
I'm not sure exactly what is the strict minimum of function that are use from the
MockStarknetMessaging.sol
contract but it might bebeneficial to have a lean interface for it :)The text was updated successfully, but these errors were encountered: