Skip to content

Commit

Permalink
Address code review comments in upstream pr
Browse files Browse the repository at this point in the history
* upstream pr celo-org#9700
* remove commented code
* remove references to fixidity lib in docs
* remove unecessary getter definition

[#182759476]
[Test] y
[Review] m-chrzan
  • Loading branch information
Daniel Swid committed Jul 28, 2022
1 parent ea9136d commit 1b6ee23
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default class DeletePaymentDelegation extends BaseCommand {
this.kit.defaultAccount = res.flags.account
const accounts = await this.kit.contracts.getAccounts()

// await accounts.deletePaymentDelegation()
await displaySendTx('deletePaymentDelegation', accounts.deletePaymentDelegation())

console.log('Deleted payment delegation.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Flags } from '../../utils/command'

export default class GetPaymentDelegation extends BaseCommand {
static description =
"Get the payment delegation account beneficiary and fraction allocated from a validator's payment each epoch. The fraction is given as FixidityLib value and cannot be greater than 1."
"Get the payment delegation account beneficiary and fraction allocated from a validator's payment each epoch. The fraction cannot be greater than 1."

static flags = {
...BaseCommand.flags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Flags } from '../../utils/command'

export default class SetPaymentDelegation extends BaseCommand {
static description =
"Sets a payment delegation beneficiary, an account address to receive a fraction of the validator's payment every epoch. The fraction is given as FixidityLib value and must not be greater than 1."
"Sets a payment delegation beneficiary, an account address to receive a fraction of the validator's payment every epoch. The fraction must not be greater than 1."

static flags = {
...BaseCommand.flags,
Expand Down
4 changes: 0 additions & 4 deletions packages/sdk/contractkit/src/contract-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@ export class WrapperCache implements ContractCacheType {
return this.getContract(CeloContract.MultiSig, address)
}

getPaymentDelegation() {
return this.getContract(CeloContract.Accounts)
}

getReserve() {
return this.getContract(CeloContract.Reserve)
}
Expand Down

0 comments on commit 1b6ee23

Please sign in to comment.