Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

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/impl/v0"
 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