Search Apps Documentation Source Content File Folder Download Copy Actions Download

govdao_execute_proposal_02_filetest.gno

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