Skip to content

write some code include panic, the stack info will print on terminal #3

@KamiD

Description

@KamiD

Summary of Bug

I wrote a panic code in contract: 'escrow'. then i deployed on my wasmd. after init, i call contract by
wasmcli tx wasm execute fred $CONTRACT "$APPROVE" -y
The tx was succeed, when i terminate wasmd by ctrl+c, the stack error print on my terminal

Version

  • using branch: master.

  • commit id: d12c434

nothing to show for wasmcli --version and wasmd --version

Steps to Reproduce

  1. add follow code in contract.rs and call it in pub fn handle<T: Storage>
fn try_panic(){
   panic!("panic test!");
} 
  1. compile and deploy it to your own wasmd.
  2. use wasmcli to test contract
  3. switch to wasmd and send ctrl+c to terminate it

The error will showed up


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

No one assigned

    Labels

    productionNeeded to be production ready

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions