Giter Club home page Giter Club logo

buidl-week1's People

Contributors

jason-me avatar justinmoon avatar ruankranz avatar svorob avatar thestack avatar

Stargazers

 avatar

Watchers

 avatar

buidl-week1's Issues

mybankutxocoin.py attribute error

python3 -m pytest bankutxocoin_tests.py
============================= test session starts ==============================
platform darwin -- Python 3.6.0, pytest-3.8.2, py-1.6.0, pluggy-0.7.1
rootdir: /Users/JMH/version-control/BUIDL/BUIDL-Week1/digital-cash, inifile:
collected 1 item

bankutxocoin_tests.py F [100%]

=================================== FAILURES ===================================
______________________________ test_bank_balances ______________________________

def test_bank_balances():
    # Create bank and issue Alice some coins
    bank = Bank()
  coinbase = bank.issue(1000, alice_public_key)

bankutxocoin_tests.py:15:


mybankutxocoin.py:55: in issue
self.update_utxo(tx)


self = <mybankutxocoin.Bank object at 0x103b9f710>
tx = <mybankutxocoin.Tx object at 0x103a34a90>

def update_utxo(self, tx):
    for tx_in in tx.tx_ins:
        del self.utxo[tx_in.outpoint]

    for tx_out in tx.tx_outs:
      self.utxo[tx_out.outpoint] = tx_out

E AttributeError: 'TxOut' object has no attribute 'outpoint'

mybankutxocoin.py:48: AttributeError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.