You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
projectId --> idProject
projectId is listed just a couple times where as idProject is listed a bunch, please change!
idxDelegate vs idDelegate
This is sooooo confusing, and I am fairly certain it is used inconsistently throughout LiquidPledging base
If we follow the pattern laid out with idProject and idGiver, idDelegate should refer to the id number in the admins array... but we call that idxDelegate in addDelegate(), updateDelegate(), getDelegateIdx() (which has a messed up name cause it has the idxDelegate as a parameter!)
Some times idxDelegate is used the way i would expect it to be used, as the index number for its authority in the delegation chain... this happens in getPledgeDelegate() and in the function namegetDelegateIdx();-)
I would love to hear comments on this, but i see 2 proposals:
My preferred (and easier):
Check all the smart contracts and tests for consistent use of:
idDelegate: the id number in the admin array
idxDelegate: the index number in delegateChain array, different for each specific Pledge
Option 2:
Check all the smart contracts and tests for consistent use of:
idDelegate: the index number in delegateChain array, different for each specific Pledge
idxDelegate: the id number in the admin array
And change:
idGiver -> idxGiver
idProject -> idxProject
The text was updated successfully, but these errors were encountered:
Would it really be that big of a deal to just do delegateIndex or something like that?
No, but that's not any more informative as both refer to indexs. 1 in the admins array and the other in the delegationChain array for an individual pledge
I think this is done, just need to verify the following
Check all the smart contracts and tests for consistent use of:
idDelegate: the id number in the admin array
idxDelegate: the index number in delegateChain array, different for each specific Pledge
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
projectId --> idProject
projectId is listed just a couple times where as idProject is listed a bunch, please change!
idxDelegate vs idDelegate
This is sooooo confusing, and I am fairly certain it is used inconsistently throughout LiquidPledging base
If we follow the pattern laid out with idProject and idGiver, idDelegate should refer to the id number in the admins array... but we call that idxDelegate in
addDelegate()
,updateDelegate()
,getDelegateIdx()
(which has a messed up name cause it has the idxDelegate as a parameter!)Some times idxDelegate is used the way i would expect it to be used, as the index number for its authority in the delegation chain... this happens in
getPledgeDelegate()
and in the function namegetDelegateIdx()
;-)I would love to hear comments on this, but i see 2 proposals:
My preferred (and easier):
Check all the smart contracts and tests for consistent use of:
idDelegate: the id number in the admin array
idxDelegate: the index number in delegateChain array, different for each specific Pledge
Option 2:
Check all the smart contracts and tests for consistent use of:
idDelegate: the index number in delegateChain array, different for each specific Pledge
idxDelegate: the id number in the admin array
And change:
idGiver -> idxGiver
idProject -> idxProject
The text was updated successfully, but these errors were encountered: