File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,14 @@ message MaybeBytes {
153
153
bool is_nothing = 2 ;
154
154
}
155
155
156
+
157
+ message MaybeBytes2 {
158
+ bytes value = 1 ;
159
+ // If false, this is None.
160
+ // Otherwise this is Some.
161
+ bool is_nothing = 2 ;
162
+ }
163
+
156
164
message KeyValue {
157
165
bytes key = 1 ;
158
166
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