NethermindEth / starknet.go

Golang Library for StarkNet/Cairo
MIT License
145 stars 105 forks source link

`price_in_fri` incorrectly json encoded as `price_in_strk` #571

Closed cll-gg closed 3 months ago

cll-gg commented 3 months ago

When marshalling a PendingBlockHeader into json, the ResourcePrice's price_in_fri field is incorrectly named as price_in_strk.

Expected: When marshalling to json, the field should be named price_in_fri.

rianhughes commented 3 months ago

Yup, thanks for catching this!