Closed ascjones closed 8 months ago
Maybe we can make the url an optional param?
- backend(node(url = "<URL>"))
+ backend(node = "<URL>")
Maybe we can make the url an optional param?
- backend(node(url = "<URL>")) + backend(node = "<URL>")
I'm not sure exactly how to achieve that using Darling. Would have to make node
a property of Backend
, but that is an enum not a struct hence the derive produces the enum(variant)
syntax.
I've played around a little bit and can't immediately find a nice way to do that. I'm sure it is possible but I will leave it for now.
Maybe we can make the url an optional param?
- backend(node(url = "<URL>")) + backend(node = "<URL>")
I'm not sure exactly how to achieve that using Darling. Would have to make
node
a property ofBackend
, but that is an enum not a struct hence the derive produces theenum(variant)
syntax.I've played around a little bit and can't immediately find a nice way to do that. I'm sure it is possible but I will leave it for now.
It is not critical ofc, just nice to have less verbose syntax
Modifies the e2e configuration for backend node from
node_url = "<url>"
tobackend(node(url = "<url>"))
.The previous configuration allowed
node_url
to be set even if usingbackend(runtime_only)
which uses no node at all so the url is not used at all.Follows up https://github.com/paritytech/ink/pull/2047