Skip to content

Commit

Permalink
Update api-voting.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatmikh committed Jun 25, 2019
1 parent bdab93f commit 43c4d64
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions doc/api/api-voting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,21 @@ Propose a poll for blacklisting the authority to the authority black list.
Proposal Examples
-----------------

Below you can see JS example of usage ``Bios.sol`` smartcontract from the Papyrus Wallet implemetatin
Below you can see JS example of usage ``Bios.sol`` smartcontract from the Papyrus Wallet implemetation:


.. code-block:: javascript
:emphasize-lines: 3, 14
async proposeNewAuthority(address, callbacks = {}) {
async proposeNewAuthority(address, callbacks = {}) {
return this.process(
this.contract.methods.proposeNewAuthority(address).send({
from: this.account,
gas: 100000
from: this.account,
gas: 100000
}),
callbacks
);
}
async proposeBlacklistAuthority(address, callbacks = {}) {
return this.process(
this.contract.methods.proposeBlacklistAuthority(address).send({
from: this.account,
gas: 100000
}),
callbacks
);
}
}
Voting Functions
Expand Down

0 comments on commit 43c4d64

Please sign in to comment.