Skip to content

Commit

Permalink
fix bug with contract chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolTrzeszczkowski committed Jul 15, 2019
1 parent f4d6814 commit 694e9b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,6 +1,6 @@
{
"display_name": "Mecenas",
"version": "0.1",
"version": "1",
"description": "Become a patron for a favorite creator",
"project_url": "https://github.com/KarolTrzeszczkowski/Electron-Cash-Mecenas-Plugin/",
"minimum_ec_version": "4.0",
Expand Down
3 changes: 2 additions & 1 deletion mecenas/mecenas_contract.py
Expand Up @@ -141,7 +141,7 @@ def __init__(self, contracts, keypairs, public_keys, wallet):
self.keypair = keypairs
self.pubkeys = public_keys
self.wallet = wallet
self.rpayment=self.contract.rpayment
self.rpayment = self.contract.rpayment
self.dummy_scriptsig = '00'*(110 + len(self.contract.redeemscript))
if self.mode == 0:
self.sequence=2**22+self.contract.i_time
Expand All @@ -156,6 +156,7 @@ def choice(self, contract, utxo_index, m):
self.chosen_utxo=utxo_index
self.contract = contract[CONTRACT]
self.contract_index = self.contracts.index(contract)
self.rpayment = contract[CONTRACT].rpayment
self.mode = m
if self.mode == 0:
self.sequence=2**22+self.contract.i_time
Expand Down
1 change: 1 addition & 0 deletions mecenas/ui.py
Expand Up @@ -406,6 +406,7 @@ def pledge(self):

tx = Transaction.from_io(inputs, outputs, locktime=0)
tx.version = 2
print(tx.outputs())
if not self.wallet.is_watching_only():
self.manager.signtx(tx)
self.manager.completetx_ref(tx)
Expand Down
2 changes: 1 addition & 1 deletion mecenas/util.py
Expand Up @@ -2,7 +2,7 @@
import time


EXPIRY =time.strptime("1 8 2019", "%d %m %Y")
EXPIRY =time.strptime("1 10 2019", "%d %m %Y")

def make_opreturn(data):
"""Turn data bytes into a single-push opreturn script"""
Expand Down

0 comments on commit 694e9b0

Please sign in to comment.