File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,13 @@ message MaybeBytes {
153
153
bool is_nothing = 2 ;
154
154
}
155
155
156
+ message MaybeBytes2 {
157
+ bytes value = 1 ;
158
+ // If false, this is None.
159
+ // Otherwise this is Some.
160
+ bool is_nothing = 2 ;
161
+ }
162
+
156
163
message KeyValue {
157
164
bytes key = 1 ;
158
165
bytes value = 2 ;
Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ type State interface {
91
91
IsInitialized () (bool , error )
92
92
SetInitialized () error
93
93
94
+ SetRandom () error
95
+
94
96
// InitializeChainState is called after the VM has been linearized. Calling
95
97
// [GetLastAccepted] or [GetTimestamp] before calling this function will
96
98
// return uninitialized data.
@@ -262,6 +264,10 @@ func New(
262
264
return s , s .initTxChecksum ()
263
265
}
264
266
267
+ func (s * state ) SetRandom () error {
268
+ return nil
269
+ }
270
+
265
271
func (s * state ) GetUTXO (utxoID ids.ID ) (* avax.UTXO , error ) {
266
272
if utxo , exists := s .modifiedUTXOs [utxoID ]; exists {
267
273
if utxo == nil {
You can’t perform that action at this time.
0 commit comments