← Back to Realms

Realm

gno.land/r/tests/vm

Overview

Realm Path
gno.land/r/tests/vm
Exported Functions
29
State Entries
17
Source Files
13
Total Package Entries
47

Exported Functions

29 exported functions

State

17 state entries

Source Code

FILES
exploit.gno
go
1package vm
2
3var MyFoo *Foo
4
5type Foo struct {
6	A int
7	B *Foo
8}
9
10// method to mutate
11
12func (f *Foo) UpdateFoo(x int) {
13	f.A = x
14}
15
16func init() {
17	MyFoo = &Foo{
18		A: 1,
19		B: &Foo{
20			A: 2,
21		},
22	}
23}
24

Raw Package Data

Raw JSON data