govdao_execute_proposal_02_filetest.gno
0.29 Kb · 15 lines
1// PKGPATH: gno.land/r/test/govdao
2
3package govdao
4
5import "gno.land/r/gov/dao/v3/impl"
6
7var govdao = impl.NewGovDAO()
8
9func main(cur realm) {
10 // Try to execute a proposal using a nil executor
11 govdao.ExecuteProposal(0, cur, 0, nil)
12}
13
14// Error:
15// an executor is required to execute the proposal