8000 Error running the example · Issue #6 · algorand/auction-demo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
Error running the example #6
Open
@tonydspaniard

Description

@tonydspaniard

Expected behavior

output

Alice is generating temporary accounts...
Alice is generating an example NFT...
The NFT ID is: 17
Alice is creating auction smart contract that lasts 30 seconds to auction off NFT...
Alice is setting up and funding NFT auction...
Alice's algo balance:  99998100  algos
The smart contract now holds the following: {0: 202000, 17: 1}
Carla wants to bid on NFT, her algo balance:  100000100  algos
Carla is placing bid for:  1000000  algos
Carla is opting into NFT with id: 17
Alice is closing out the auction....
The smart contract now holds the following: {0: 0}
Carla's NFT balance: 1  for NFT ID:  17
Alice's balances after auction:  {0: 101197100, 17: 0}  Algos
Carla's balances after auction:  {0: 98997100, 17: 1}  Algos

Actual Response

Alice is generating temporary accounts...
Alice is generating an example NFT...
The NFT ID is: 189
Alice is creating auction smart contract that lasts 30 seconds to auction off NFT...
Alice is setting up and funding NFT auction...
Alice's algo balance:  99998000  algos
Last round time:  1637845428
Start time:  1637876172
Sleeping time:  30749
Getting the balances
The smart contract now holds the following: {0: 202000, 189: 1}
Carla wants to bid on NFT, her algo balance:  100000000  algos
Carla is placing bid for:  1000000  algos
Traceback (most recent call last):
  File "/Users/tonydspaniard/PythonProjects/Algorand/auction-demo/venv/lib/python3.8/site-packages/algosdk/v2client/algod.py", line 82, in algod_request
    resp = urlopen(req)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "example.py", line 114, in <module>
    simple_auction()
  File "example.py", line 79, in simple_auction
    placeBid(client=client, appID=appID, bidder=bidder, bidAmount=bidAmount)
  File "/Users/tonydspaniard/PythonProjects/Algorand/auction-demo/auction/operations.py", line 228, in placeBid
    client.send_transactions([signedPayTxn, signedAppCallTxn])
  File "/Users/tonydspaniard/PythonProjects/Algorand/auction-demo/venv/lib/python3.8/site-packages/algosdk/v2client/algod.py", line 307, in send_transactions
    return self.send_raw_transaction(
  File "/Users/tonydspaniard/PythonProjects/Algorand/auction-demo/venv/lib/python3.8/site-packages/algosdk/v2client/algod.py", line 237, in send_raw_transaction
    return self.algod_request("POST", req, data=txn, **kwargs)["txId"]
  File "/Users/tonydspaniard/PythonProjects/Algorand/auction-demo/venv/lib/python3.8/site-packages/algosdk/v2client/algod.py", line 89, in algod_request
    raise error.AlgodHTTPError(e, code)
algosdk.error.AlgodHTTPError: TransactionPool.Remember: transaction 6D5XI4OFPUV3YPWW6HTCXQ57XYAWEKRNGXHUZSAEHDF3BJOV27VA: logic eval error: assert failed pc=335

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0