We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gas.State
1 parent 93a22bd commit e23bbbeCopy full SHA for e23bbbe
vms/components/gas/state.go
@@ -13,9 +13,11 @@ import (
13
14
var ErrInsufficientCapacity = errors.New("insufficient capacity")
15
16
+//go:generate github.com/StephenButtolph/canoto/canoto state.go
17
+
18
type State struct {
- Capacity Gas `serialize:"true" json:"capacity"`
- 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"`
21
}
22
23
// AdvanceTime adds maxPerSecond to capacity and subtracts targetPerSecond
0 commit comments