buidl-week1's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.