-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address of OpenLaw smart contract #159
Comments
Hi @javaadpatel, thanks for the issue; let's see if we can be of assistance! @jdville03 is this possible? |
@jdville03 @jtrein thanks for the help with this, if the address OpenLaw uses stays constant then I can possibly write something to capture what that address is and then hardcode it into my contract |
@jtrein I tried delegating the signature, using the
and then I made a simple function in my contract:
I then sign it using "Sign with Metamask" in the OpenLaw portal and get this response: but the function does not pass? Is there something I am missing on how to make the smart contract call come from a particular address? |
hey @javaadpatel thank you for reaching out here // I believe our latest upgrade to the main OpenLaw website may have caused an issue with delegated calls appearing correctly - we are looking into this now and appreciate your help! |
@Ro5s thanks for the response, and I'm happy to help debug anything to get this resolved or clear up any misunderstanding I'm having. One thing I noticed was that when I use the "Sign with metaMask" option and I have specified the "from" field in the EthereumCall element: Then the Openlaw contract does not fire off the call to the smart contract? I can see this because I am recording the msg.sender property as |
I just read this article (https://medium.com/@OpenLawOfficial/making-smart-contracts-simpler-learn-how-to-delegate-smart-contract-calls-with-openlaw-6e0c7aa8464c) and in the video it seems like the delegated call is supposed to render a button "Execute" (first screenshot below) that is clickable to send the transaction? Seems like on my contract this button does not appear: I called the endpoint
Maybe this could be why the button does not render as it maybe looks at |
Hi, firstly thanks for the amazing project, I was reading the documentation about how an OpenLaw legal agreement once signed can call a smart contract.
I would like to expose a function on my smart contact which will only be called when the participants have signed the openlaw contract, so the function would need a restriction like
msg.sender == openLawCallerAddress
. I read this part of the docbut i'm not sure where to find the address of the OpenLaw account so that I can restrict the function to only be called by that address.
The text was updated successfully, but these errors were encountered: