Convert contribution owner to ID, use smaller number formats #73
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/contribution_owner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sorry for mixing these two topics into one PR. This changes the contribution to be tied to a contributor ID instead of an account address. It also changes a bunch of numbers from uint256 to uint32.
@ -22,3 +29,4 @@
uint32 amount;
bool claimed;
bytes32 hashDigest;
uint8 hashFunction;
The
mintFor
takes auint256
@ -57,3 +57,3 @@
let contribution = [
contributionAttr.amount,
contributionAttr.contributorAccount,
contributionAttr.contributorId,
@ -17,3 +16,3 @@
return RSVP.all(contributions);
return contributions;
});
It is missing a
.
@ -22,3 +29,4 @@
uint32 amount;
bool claimed;
bytes32 hashDigest;
uint8 hashFunction;
Yes, but we're converting it before minting in
claim()
. Nobody has to mine more than 2.2 billion kredits at once, so the locally stored amount can be a smaller format.@ -16,3 +15,3 @@
}
return RSVP.all(contributions);
return contributions;
❤️
@ -16,3 +15,3 @@
}
return RSVP.all(contributions);
return contributions;
to promise or not to promise? :bumiwonders:
🎉 🚀
@ -16,3 +15,3 @@
}
return RSVP.all(contributions);
return contributions;
If you can wait for it you don't need to promise anything.