-
Notifications
You must be signed in to change notification settings - Fork 0
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
Is it a working contract? #1
Comments
Yes, this is a working contract. You can deploy it and test it yourself on Devnet or Mainnet. But I would consider this just a starter template for a real rental agreement since there are probably more features and validation you'd want to include besides just the basics here. |
@BryanMorgan I see. What those features and validation would be, for instance? |
For example:
|
Hi @BryanMorgan, do you have an example for client side? Thanks :) |
Right now I don't have a fully functional client-side example I can share. But I pulled out some of the key capabilities from a client example I am working on and shared it in this Gist. Hopefully that's enough to get you started with the 3 key steps:
It uses the https://gist.github.com/BryanMorgan/2da2ed2b1ce8371d12812cfc2db6e73b |
Thanks @BryanMorgan |
But that requires duplicating all those |
No, you don't have to. You don't even have to use a JavaScript/web3.js client. You could write a client in Rust and re-use the same definitions. But if you're building a web3-based client it probably makes it easier to keep track of the data you're sending in |
Is it a working contract? Can be used in a real environment?
The text was updated successfully, but these errors were encountered: