Skip to content

Commit 7e61323

Browse files
authored
fix: CodeCID should be at end of model (#1205)
1 parent fdc39a9 commit 7e61323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/actors/common/actors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ type Actor struct {
2323
StateRoot string `pg:",pk,notnull"`
2424
// Human-readable identifier for the type of the actor.
2525
Code string `pg:",notnull"`
26-
// CID identifier for the type of the actor.
27-
CodeCID string `pg:",notnull"`
2826
// CID of the root of the state tree for the actor.
2927
Head string `pg:",notnull"`
3028
// Balance of Actor in attoFIL.
@@ -33,6 +31,8 @@ type Actor struct {
3331
Nonce uint64 `pg:",use_zero"`
3432
// Top level of state data as json.
3533
State string `pg:",type:jsonb"`
34+
// CID identifier for the type of the actor.
35+
CodeCID string `pg:",notnull"`
3636
}
3737

3838
func (a *Actor) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error {

0 commit comments

Comments
 (0)