We use cookies and other tracking technologies to improve your browsing experience on our site, analyze site traffic, and understand where our audience is coming from. To find out more, please read our privacy policy.

By choosing 'I Accept', you consent to our use of cookies and other tracking technologies.

We use cookies and other tracking technologies to improve your browsing experience on our site, analyze site traffic, and understand where our audience is coming from. To find out more, please read our privacy policy.

By choosing 'I Accept', you consent to our use of cookies and other tracking technologies. Less

We use cookies and other tracking technologies... More

Login or register
to apply for this job!

Login or register to start contributing with an article!

Login or register
to see more jobs from this company!

Login or register
to boost this post!

Show some love to the author of this blog by giving their post some rocket fuel 🚀.

Login or register to search for your ideal job!

Login or register to start working on this issue!

Engineers who find a new job through Golang Works average a 15% increase in salary 🚀

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

Work started
Pull requests: 0
Contributors: 1
Level: Intermediate
  • Go
Work started
Pull requests: 0
Contributors: 1
Level: Intermediate
  • Go

On GitHub

Basic cosmos-sdk app with web assembly smart contracts
More info >

Issue posted by: 
KamiD's avatar

kamimt

Description

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

    Use Open Source Issues to hire or get hired

    On GitHub

    Basic cosmos-sdk app with web assembly smart contracts
    More info >

    Issue posted by: 
    KamiD's avatar

    kamimt

    Use Open Source Issues to hire or get hired

    write some code include panic, the stack info will print on terminal
    View on GitHub