tendermint/go-amino

Floating points with `amino:"unsafe"` decode error

Opened this issue · 1 comments

imuge commented

https://github.com/tendermint/go-amino/blob/master/json-decode.go#L405

I think this
err = cdc.decodeReflectJSON(valueBytes, finfo, frv, fopts)
shold be changed to
err = cdc.decodeReflectJSON(valueBytes, finfo, frv, field.FieldOptions)

'Unsafe' in 'fopts' always be 'false'

I think PR #306 is fixing this issue