Reimbursement.getReimbursement vs. Reimbursement.get
This commit is contained in:
parent
3f8407fa02
commit
1f248812a7
@ -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 (
|
||||
|
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user