beacon-kit icon indicating copy to clipboard operation
beacon-kit copied to clipboard

ClientCtx that arrives to the application is not the same that comes to the root command.

Open randygrok opened this issue 1 year ago • 3 comments

Probably given that we have two points where we start a depinject container:

https://github.com/berachain/beacon-kit/blob/9a9538c0be4f7337cee742b254eea871820c760e/examples/beacond/cmd/root/root.go#L62

and

https://github.com/berachain/beacon-kit/blob/9a9538c0be4f7337cee742b254eea871820c760e/examples/beacond/app/app.go#L111

The data that I got from inside the application is not correct; an example is the HomeDir.

From root.go, I get the one supplied by the flag ".tmp/beacond" and from inside the app is "HOMEDIR/.beacond"

randygrok avatar Mar 05 '24 22:03 randygrok

maybe related #425

randygrok avatar Mar 05 '24 22:03 randygrok

We are using same depinject arch as Simapp from SDK.

This double depinject feels like something we could address in server v2? @tac0turtle @tac0turtle

itsdevbear avatar Mar 07 '24 14:03 itsdevbear

definitely the cause of #466 issues

itsdevbear avatar Mar 08 '24 04:03 itsdevbear