Fix soliditi error
This commit is contained in:
parent
34e928ced9
commit
1f0c5fd987
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -664,6 +664,14 @@ contract LiquidPledging is LiquidPledgingBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mNormalizeNote(uint[] notes) returns(uint64) {
|
||||||
|
for (uint i = 0; i < notes.length; i++ ) {
|
||||||
|
uint64 idNote = uint64( notes[i] & (D64-1) );
|
||||||
|
|
||||||
|
normalizeNote(idNote);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////
|
////////
|
||||||
// Private methods
|
// Private methods
|
||||||
///////
|
///////
|
||||||
|
@ -777,7 +785,9 @@ contract LiquidPledging is LiquidPledgingBase {
|
||||||
// do what this function does to the note for the end user at the expiration of the committime)
|
// do what this function does to the note for the end user at the expiration of the committime)
|
||||||
// #2: It checks to make sure that if there has been a cancellation in the chain of projects,
|
// #2: It checks to make sure that if there has been a cancellation in the chain of projects,
|
||||||
// then it adjusts the note's owner appropriately.
|
// then it adjusts the note's owner appropriately.
|
||||||
function normalizeNote(uint64 idNote) internal returns(uint64) {
|
// This call can be called from any body at any time on any node. In general it can be called
|
||||||
|
// to froce the calls of the affected plugins.
|
||||||
|
function normalizeNote(uint64 idNote) returns(uint64) {
|
||||||
Note storage n = findNote(idNote);
|
Note storage n = findNote(idNote);
|
||||||
|
|
||||||
// Check to make sure this note hasnt already been used or is in the process of being used
|
// Check to make sure this note hasnt already been used or is in the process of being used
|
||||||
|
|
|
@ -664,6 +664,14 @@ contract LiquidPledging is LiquidPledgingBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mNormalizeNote(uint[] notes) returns(uint64) {
|
||||||
|
for (uint i = 0; i < notes.length; i++ ) {
|
||||||
|
uint64 idNote = uint64( notes[i] & (D64-1) );
|
||||||
|
|
||||||
|
normalizeNote(idNote);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////
|
////////
|
||||||
// Private methods
|
// Private methods
|
||||||
///////
|
///////
|
||||||
|
@ -777,7 +785,9 @@ contract LiquidPledging is LiquidPledgingBase {
|
||||||
// do what this function does to the note for the end user at the expiration of the committime)
|
// do what this function does to the note for the end user at the expiration of the committime)
|
||||||
// #2: It checks to make sure that if there has been a cancellation in the chain of projects,
|
// #2: It checks to make sure that if there has been a cancellation in the chain of projects,
|
||||||
// then it adjusts the note's owner appropriately.
|
// then it adjusts the note's owner appropriately.
|
||||||
function normalizeNote(uint64 idNote) internal returns(uint64) {
|
// This call can be called from any body at any time on any node. In general it can be called
|
||||||
|
// to froce the calls of the affected plugins.
|
||||||
|
function normalizeNote(uint64 idNote) returns(uint64) {
|
||||||
Note storage n = findNote(idNote);
|
Note storage n = findNote(idNote);
|
||||||
|
|
||||||
// Check to make sure this note hasnt already been used or is in the process of being used
|
// Check to make sure this note hasnt already been used or is in the process of being used
|
||||||
|
|
|
@ -280,7 +280,7 @@ contract LiquidPledging is LiquidPledgingBase {
|
||||||
for (uint i = 0; i < notes.length; i++ ) {
|
for (uint i = 0; i < notes.length; i++ ) {
|
||||||
uint64 idNote = uint64( notes[i] & (D64-1) );
|
uint64 idNote = uint64( notes[i] & (D64-1) );
|
||||||
|
|
||||||
normalizeNote(idNote, amount);
|
normalizeNote(idNote);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "liquidpledging",
|
"name": "liquidpledging",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"description": "Liquid Pledging Smart Contract",
|
"description": "Liquid Pledging Smart Contract",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|
Loading…
Reference in New Issue