Add support for contract tx call options #34
@ -34,7 +34,7 @@ class Contributor extends Base {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
add(contributorAttr) {
|
add(contributorAttr, callOptions = {}) {
|
||||||
let json = ContributorSerializer.serialize(contributorAttr);
|
let json = ContributorSerializer.serialize(contributorAttr);
|
||||||
// TODO: validate against schema
|
// TODO: validate against schema
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ class Contributor extends Base {
|
|||||||
contributorAttr.isCore,
|
contributorAttr.isCore,
|
||||||
];
|
];
|
||||||
|
|
||||||
return this.functions.addContributor(...contributor);
|
return this.functions.addContributor(...contributor, callOptions);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class Operator extends Base {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
addProposal(proposalAttr) {
|
addProposal(proposalAttr, callOptions = {}) {
|
||||||
let json = ContributionSerializer.serialize(proposalAttr);
|
let json = ContributionSerializer.serialize(proposalAttr);
|
||||||
// TODO: validate against schema
|
// TODO: validate against schema
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ class Operator extends Base {
|
|||||||
ipfsHashAttr.hashSize,
|
ipfsHashAttr.hashSize,
|
||||||
];
|
];
|
||||||
|
|
||||||
return this.functions.addProposal(...proposal);
|
return this.functions.addProposal(...proposal, callOptions);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user