Skip to content

Commit

Permalink
fix: panic: interface conversion: interface {} is big.Float, not *big…
Browse files Browse the repository at this point in the history
….Float [recovered]
  • Loading branch information
RodrigoCMoraes committed May 29, 2024
1 parent c15d441 commit 1289daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func gobDecodeFixNumberPtr(raw interface{}, ty cty.Type) interface{} {
switch {
case ty.Equals(cty.Number):
if bf, ok := raw.(big.Float); ok {
return &bf // wrap in pointer
return bf // wrap in pointer
}
case ty.IsMapType():
if m, ok := raw.(map[string]interface{}); ok {
Expand Down

0 comments on commit 1289daa

Please sign in to comment.