Giter Club home page Giter Club logo

tealinspector's Introduction

tealinspector

As a developer error like below is not descriptive,

AlgodHTTPError: TransactionPool.Remember: transaction T4EVC7YANLFGBO5KJRIDEAYZBN3KKJC2B7VFRY4ZFMTSZOPTHBTQ: logic eval error: assert failed pc=1328. Details: pc=1328, opcodes===
&&
assert

This package gets the lines from the "pc".

Install the dependency

pip install tealinspector

Use in CLI

tealinspector --network mainnet --application_id 942781578 --program_counter 1328

Additionally,

  • --network is optional. The default value is mainnet.
  • --line_count parameter can be passed. The default value is 25.

Output

Line: 594
569 &&
570 gtxn 4 Fee
571 global MinTxnFee
572 intc 10 // 9
573 *
574 ==
575 &&
576 gtxn 4 NumAppArgs
577 intc_0 // 1
578 ==
579 &&
580 gtxna 4 Assets 0
581 bytec_2 // "global_list_asset"
582 app_global_get
583 ==
584 &&
585 gtxna 4 Accounts 1
586 bytec_1 // "global_list_owner"
587 app_global_get
588 ==
589 &&
590 gtxna 4 Accounts 2
591 bytec 8 // addr KQMEN76UOQEHGXPBXUMRGW3KFI7Z57IFXBXWO77HAXYKMISCZF5CAOOITI
592 ==
593 &&
594 assert <----------

About

Developed by Hipo. Licensed under MIT.

tealinspector's People

Contributors

efe avatar

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.