1
        [[eosio::action]]
        void hi(){
            string strNum;
            strNum.push_back('3');
            float currNum = std::stof(strNum);//  
            print("currNum=",currNum);
        }

then

MacBook-Plou:testkeys treaser$ cleos push action fy hi '[]' -p testhero@active
Error 3070002: Runtime Error Processing WASM
Error Details:
wabt execution failure (out of bounds memory access)
pending console output: 
  • Please add a decent description about what you are trying to do. – TeeAttack42 Nov 16 '18 at 16:27

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.