Fix confirmations being 1 block too late
block.number refers to the last mined block, so we need to add +1 to wait from the current block on (the one in which this function is executed).
This commit is contained in:
parent
89829ee81f
commit
2238ccf40e
@ -164,7 +164,7 @@ contract Contribution is AragonApp {
|
|||||||
if (contributionId < 10) {
|
if (contributionId < 10) {
|
||||||
c.confirmedAtBlock = block.number;
|
c.confirmedAtBlock = block.number;
|
||||||
} else {
|
} else {
|
||||||
c.confirmedAtBlock = block.number + blocksToWait;
|
c.confirmedAtBlock = block.number + 1 + blocksToWait;
|
||||||
}
|
}
|
||||||
|
|
||||||
contributionsCount++;
|
contributionsCount++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user