Skip to content

Commit

Permalink
fix nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
keefertaylor committed Feb 29, 2024
1 parent 052d62c commit cee0c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/tx/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func (p *FileGasPriceProvider) loadData() (*GasData, error) {
}
defer file.Close()

var gasData *GasData
gasData := &GasData{}
if err := json.NewDecoder(file).Decode(gasData); err != nil {
return nil, err
}
Expand Down

0 comments on commit cee0c7c

Please sign in to comment.