Skip to content

Commit f9d2636

Browse files
committed
changes that should fail
1 parent 37fc2ca commit f9d2636

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

proto/sync/sync.proto

+8
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ message MaybeBytes {
153153
bool is_nothing = 2;
154154
}
155155

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+
156164
message KeyValue {
157165
bytes key = 1;
158166
bytes value = 2;

vms/avm/states/state.go

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ type State interface {
9191
IsInitialized() (bool, error)
9292
SetInitialized() error
9393

94+
SetRandom() error
95+
9496
// InitializeChainState is called after the VM has been linearized. Calling
9597
// [GetLastAccepted] or [GetTimestamp] before calling this function will
9698
// return uninitialized data.
@@ -262,6 +264,10 @@ func New(
262264
return s, s.initTxChecksum()
263265
}
264266

267+
func (s *state) SetRandom() error {
268+
return nil
269+
}
270+
265271
func (s *state) GetUTXO(utxoID ids.ID) (*avax.UTXO, error) {
266272
if utxo, exists := s.modifiedUTXOs[utxoID]; exists {
267273
if utxo == nil {

0 commit comments

Comments
 (0)