Closed bassjobsen closed 6 years ago
Thanks!
Thank you too. I'll fix these issues
@a1300
3
The function
vote
needs to be constructed with anrequestorId
andmode
set to 1
Are you sure about that. I believe one should create a group transaction first, from the tests:
trs = {
secret: group.members[0].secret,
type: 1,
fee: 20000000,
senderId: groupAccount.address,
args: [
11230,
group.members[1].address,
],
mode: 1,
}
The above transaction got a senderId: groupAccount.address
and mode: 1
.
After that group members may vote on the transaction, and one of them may call group.active
after all votes has been gained.
All the above differs from adding a new member, which requires the signature of all other members, see also: https://stackoverflow.com/questions/52367434/how-can-users-sign-a-multi-signed-transaction
closed in favour of #37
@bassjobsen
Review
1
There are some
SPACES
whereTABS
should be. Please have another look2
The
function vote(targetId)
function is missing an function argumentsecret
andsecondSecret
3
The function
vote
needs to be constructed with anrequestorId
andmode
set to 1Thanks! :+1: