koinos / koinos-util-golang

A utility library used by Koinos Golang applications.
MIT License
2 stars 1 forks source link

Passing in `SubParams` to `SubmitTransaction` #23

Closed sgerbino closed 2 years ago

sgerbino commented 2 years ago

The code suggests that SubParams can be nil, yet it dereferences the object first thing. The code should either accept nil and not dereference or the nil check in the conditional is unnecessary.

https://github.com/koinos/koinos-util-golang/blob/4faf8205b8eddff83ee3cc0817ea6987e7576f86/rpc/koinos_rpc_client.go#L176-L190

mvandeberg commented 2 years ago

Closes by #24