Reimbursement.getReimbursement vs. Reimbursement.get

This commit is contained in:
bumi 2020-05-29 15:12:57 +02:00
parent 3f8407fa02
commit 1f248812a7
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ contract Reimbursement is AragonApp {
}
}
function getReimbursement(uint32 reimbursementId) public view returns (uint32 id, address recipient, uint256 amount, address token, bool claimed, bytes32 hashDigest, uint8 hashFunction, uint8 hashSize, uint256 confirmedAtBlock, bool exists, bool vetoed) {
function get(uint32 reimbursementId) public view returns (uint32 id, address recipient, uint256 amount, address token, bool claimed, bytes32 hashDigest, uint8 hashFunction, uint8 hashSize, uint256 confirmedAtBlock, bool exists, bool vetoed) {
id = reimbursementId;
ReimbursementData storage r = reimbursements[id];
return (

View File

@ -7,7 +7,7 @@ class Reimbursement extends Record {
}
getById (id) {
return this.functions.getReimbursement(id)
return this.functions.get(id)
.then(data => {
return this.ipfs.catAndMerge(data, ExpenseSerializer.deserialize);
});