I just found this library and started to play with it - very nice!
My application would require loose coupling between the RPC client and the Contract struct as I need to be able to easily switch RPC clients.
Thus I've refactored tezos-contract so that the user provides the RPC client as needed, rather than having it inside the relevant structs.
What do you think?
P.S. I also added a .rustfmt.toml (empty) so that the formatter respects your formatting preferences, even when this project is a git submodule of another project.
I just found this library and started to play with it - very nice!
My application would require loose coupling between the RPC client and the
Contract
struct as I need to be able to easily switch RPC clients. Thus I've refactoredtezos-contract
so that the user provides the RPC client as needed, rather than having it inside the relevant structs.What do you think?
P.S. I also added a .rustfmt.toml (empty) so that the formatter respects your formatting preferences, even when this project is a git submodule of another project.