synthetix-subgraph
synthetix-subgraph copied to clipboard
Use access token
The access-token
parameter was not used for the hosted service deployment and used incorrectly for the decentralised deployment (it's camel cased on the settings object)
My first commit resolved the problem. The nested if statement and repetition of build/deploy exec triggered my refactor brain. I created buildAndDeployHosted
and deployDecentralized
to make it a little easier to reason about, hopefully you agree with that.
I also remove some await for non async functions