Closed GaloisField2718 closed 2 years ago
I find this solution
near call $DAO add_proposal '{
"proposal": {
"description": "Update voting policy to simplify test vote",
"kind":{
"ChangePolicyUpdateDefaultVotePolicy": {
"vote_policy":{
"weight_kind": "RoleWeight",
"quorum": "0",
"threshold": [1,4]
}
}
}
}
}' --accountId $NEAR_ACCT --amount $BOND_AMOUNT --gas $MAX_GAS
Hello, I'm currently working on different vote policy per each role. I think that I might use
For now my code it seems like that :
The error is follow :
The problem is : in struct
VotePolicy
we have :But as we see in first lines vote_policy takes this argument
pub vote_policy: HashMap<String, VotePolicy>
, in other words we have a "kind" which is astring
and "vote_policy" which is aVotePolicy
type. Nevertheless, when I only try with VOTE_POLICY_STAGIAIRES, it's the same error :Anyone has an idea about how to solve this issue ?