Skip to content

Commit aabfe4c

Browse files
committed
fix(ledger/byron): Renamed ByronFtsSeed to ByronGenesisFtsSeed
Signed-off-by: Akhil Repala <[email protected]>
1 parent 2adef07 commit aabfe4c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ledger/byron/genesis.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ import (
2626
"github.com/blinklabs-io/gouroboros/ledger/common"
2727
)
2828

29-
type ByronFtsSeed struct {
29+
type ByronGenesisFtsSeed struct {
3030
Value string
3131
IsObject bool
3232
}
3333
type ByronGenesis struct {
3434
AvvmDistr map[string]string `json:"avvmDistr"`
3535
BlockVersionData ByronGenesisBlockVersionData `json:"blockVersionData"`
36-
FtsSeed ByronFtsSeed `json:"ftsSeed"`
36+
FtsSeed ByronGenesisFtsSeed `json:"ftsSeed"`
3737
ProtocolConsts ByronGenesisProtocolConsts `json:"protocolConsts"`
3838
StartTime int `json:"startTime"`
3939
BootStakeholders map[string]int `json:"bootStakeholders"`
@@ -200,7 +200,7 @@ func NewByronGenesisFromFile(path string) (ByronGenesis, error) {
200200
}
201201

202202
// UnmarshalJSON accepts: "string", {}, or null
203-
func (f *ByronFtsSeed) UnmarshalJSON(b []byte) error {
203+
func (f *ByronGenesisFtsSeed) UnmarshalJSON(b []byte) error {
204204
var first byte
205205
for _, c := range b {
206206
if c > ' ' {
@@ -237,7 +237,7 @@ func (f *ByronFtsSeed) UnmarshalJSON(b []byte) error {
237237
}
238238
}
239239

240-
func (f ByronFtsSeed) MarshalJSON() ([]byte, error) {
240+
func (f ByronGenesisFtsSeed) MarshalJSON() ([]byte, error) {
241241
if f.IsObject {
242242
// serialize as empty object
243243
return []byte(`{}`), nil

ledger/byron/genesis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ var expectedGenesisObj = byron.ByronGenesis{
128128
UpdateProposalThd: 100000000000000,
129129
UpdateVoteThd: 1000000000000,
130130
},
131-
FtsSeed: byron.ByronFtsSeed{
131+
FtsSeed: byron.ByronGenesisFtsSeed{
132132
Value: "76617361206f7061736120736b6f766f726f64612047677572646120626f726f64612070726f766f6461",
133133
IsObject: false,
134134
},

0 commit comments

Comments
 (0)