Skip to content

Commit adb8e95

Browse files
committed
changes that should fail
1 parent f1ce4ec commit adb8e95

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

proto/sync/sync.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ message MaybeBytes {
153153
bool is_nothing = 2;
154154
}
155155

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+
156163
message KeyValue {
157164
bytes key = 1;
158165
bytes value = 2;

vms/avm/states/state.go

Lines changed: 6 additions & 0 deletions
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)