From 1199b053fe9e81a384fbf73d148ce0858be08e5a Mon Sep 17 00:00:00 2001 From: Manuel Wiedenmann Date: Wed, 24 Apr 2019 21:55:10 +0200 Subject: [PATCH] Add missing returns for the deprecated methods --- lib/contracts/contribution.js | 2 +- lib/contracts/proposal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/contracts/contribution.js b/lib/contracts/contribution.js index 8b894b7..7bcff54 100644 --- a/lib/contracts/contribution.js +++ b/lib/contracts/contribution.js @@ -60,7 +60,7 @@ class Contribution extends Record { addContribution () { deprecate('The method: `addContribution` is deprecated use `add` instead'); - this.add(...arguments); + return this.add(...arguments); } } diff --git a/lib/contracts/proposal.js b/lib/contracts/proposal.js index b5a9f42..e69969b 100644 --- a/lib/contracts/proposal.js +++ b/lib/contracts/proposal.js @@ -39,7 +39,7 @@ class Proposal extends Record { addProposal () { deprecate('The method: `addProposal` is deprecated use `add` instead'); - this.add(...arguments); + return this.add(...arguments); } }