Skip to content

Commit e23bbbe

Browse files
committed
chore: canoto tags for gas.State
1 parent 93a22bd commit e23bbbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vms/components/gas/state.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ import (
1313

1414
var ErrInsufficientCapacity = errors.New("insufficient capacity")
1515

16+
//go:generate github.com/StephenButtolph/canoto/canoto state.go
17+
1618
type State struct {
17-
Capacity Gas `serialize:"true" json:"capacity"`
18-
Excess Gas `serialize:"true" json:"excess"`
19+
Capacity Gas `serialize:"true" json:"capacity" canoto:"fint64,1"`
20+
Excess Gas `serialize:"true" json:"excess" canoto:"fint64,2"`
1921
}
2022

2123
// AdvanceTime adds maxPerSecond to capacity and subtracts targetPerSecond

0 commit comments

Comments
 (0)