{"action":"created","issue":{"url":"https://api.github.com/repos/bitsuperlab/bitshares_play/issues/93","labels_url":"https://api.github.com/repos/bitsuperlab/bitshares_play/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/bitsuperlab/bitshares_play/issues/93/comments","events_url":"https://api.github.com/repos/bitsuperlab/bitshares_play/issues/93/events","html_url":"https://github.com/bitsuperlab/bitshares_play/issues/93","id":62695074,"number":93,"title":"[test] cucumber features/play_dice.feature error","user":{"login":"HackFisher","id":1070122,"avatar_url":"https://avatars.githubusercontent.com/u/1070122?v=3","gravatar_id":"","url":"https://api.github.com/users/HackFisher","html_url":"https://github.com/HackFisher","followers_url":"https://api.github.com/users/HackFisher/followers","following_url":"https://api.github.com/users/HackFisher/following{/other_user}","gists_url":"https://api.github.com/users/HackFisher/gists{/gist_id}","starred_url":"https://api.github.com/users/HackFisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackFisher/subscriptions","organizations_url":"https://api.github.com/users/HackFisher/orgs","repos_url":"https://api.github.com/users/HackFisher/repos","events_url":"https://api.github.com/users/HackFisher/events{/privacy}","received_events_url":"https://api.github.com/users/HackFisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-18T13:32:38Z","updated_at":"2015-03-19T15:13:43Z","closed_at":null,"body":"```\r\nFeature: Create Dice game, buy game chip and play game DICE\r\n  As a regular user\r\n  I have some fund\r\n  I want to buy some game chip and play game DICE\r\n  So that I might win or lose\r\n\r\n  Background: Create an asset and a game binding to that asset                                                  # features/play_dice.feature:7\r\nlaunching testnet, please wait..\r\n    Given I'm Alice                                                                                             # features/step_definitions/basic_wallet_steps.rb:7\r\n    And I received 5200000 XTS from angel                                                                       # features/step_definitions/basic_wallet_steps.rb:43\r\n      {\r\n        \"message\": \"invalid asset amount (35005)\\n\\n\\n\\n\\n\\n\\n\",\r\n        \"detail\": \"35005 invalid_asset_amount: invalid asset amount\\n\\n    {\\\"share_string\\\":\\\"5200000.000000000000\\\",\\\"max_rhs_size\\\":5}\\n    th_a  asset_record.cpp:75 share_string_to_satoshi\\n\\n    {\\\"share_string\\\":\\\"5200000.000000000000\\\",\\\"precision\\\":100000}\\n    th_a  asset_record.cpp:91 share_string_to_satoshi\\n\\n    {\\\"amount\\\":\\\"5200000.000000000000\\\"}\\n    th_a  asset_record.cpp:96 asset_from_string\\n\\n    {\\\"amount\\\":\\\"5200000.000000000000\\\",\\\"symbol\\\":\\\"XTS\\\"}\\n    th_a  chain_interface.cpp:269 to_ugly_asset\\n\\n    {\\\"amount_to_transfer\\\":\\\"5200000.000000000000\\\",\\\"asset_symbol\\\":\\\"XTS\\\",\\\"from_account_name\\\":\\\"angel\\\",\\\"recipient\\\":\\\"alice\\\",\\\"memo_message\\\":\\\"\\\",\\\"strategy\\\":\\\"vote_recommended\\\"}\\n    th_a  wallet_api.cpp:322 wallet_transfer\\n\\n    {}\\n    th_a  common_api_client.cpp:3664 wallet_transfer\",\r\n        \"code\": 35005\r\n      } (BitShares::API::Rpc::Error)\r\n      wallet_transfer 5200000.0 XTS angel alice\r\n      features/play_dice.feature:9:in `And I received 5200000 XTS from angel'\r\n```"},"comment":{"url":"https://api.github.com/repos/bitsuperlab/bitshares_play/issues/comments/83619235","html_url":"https://github.com/bitsuperlab/bitshares_play/issues/93#issuecomment-83619235","issue_url":"https://api.github.com/repos/bitsuperlab/bitshares_play/issues/93","id":83619235,"user":{"login":"HackFisher","id":1070122,"avatar_url":"https://avatars.githubusercontent.com/u/1070122?v=3","gravatar_id":"","url":"https://api.github.com/users/HackFisher","html_url":"https://github.com/HackFisher","followers_url":"https://api.github.com/users/HackFisher/followers","following_url":"https://api.github.com/users/HackFisher/following{/other_user}","gists_url":"https://api.github.com/users/HackFisher/gists{/gist_id}","starred_url":"https://api.github.com/users/HackFisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackFisher/subscriptions","organizations_url":"https://api.github.com/users/HackFisher/orgs","repos_url":"https://api.github.com/users/HackFisher/repos","events_url":"https://api.github.com/users/HackFisher/events{/privacy}","received_events_url":"https://api.github.com/users/HackFisher/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T15:13:43Z","updated_at":"2015-03-19T15:13:43Z","body":"https://github.com/bitsuperlab/bitshares_play/commit/db3be77a22cd29952af372197856487c1bfadb50\r\n\r\nnot finish yet:\r\n\r\n```\r\nAnd I created a game asset called DICE for dice with precision 0.01, initial supply 10000, and inital collateral 1000 # features/step_definitions/game_steps.rb:1\r\n      {\r\n        \"message\": \"Assert Exception (10)\\nptr: \\n\\n\\n\\n\\n\\n\",\r\n        \"detail\": \"10 assert_exception: Assert Exception\\nptr: \\n    {}\\n    th_a  transaction_evaluation_state.hpp:31 pending_state\\n\\n    {}\\n    th_a  transaction_evaluation_state.cpp:214 calculate_base_fees\\n\\n    {\\\"trx\\\":{\\\"expiration\\\":\\\"2015-03-19T16:06:30\\\",\\\"reserved\\\":null,\\\"operations\\\":[{\\\"type\\\":\\\"withdraw_op_type\\\",\\\"data\\\":{\\\"balance_id\\\":\\\"XTSAE5aoEjBYsWRUx6akeC9yA6vKQtBZ1VZZ\\\",\\\"amount\\\":50000100000,\\\"claim_input_data\\\":\\\"\\\"}},{\\\"type\\\":\\\"create_asset_op_type\\\",\\\"data\\\":{\\\"symbol\\\":\\\"DICE\\\",\\\"name\\\":\\\"DICE\\\",\\\"description\\\":\\\"DICE\\\",\\\"public_data\\\":null,\\\"issuer_type\\\":4,\\\"issuer_id\\\":1,\\\"maximum_share_supply\\\":1000000000000000,\\\"precision\\\":100,\\\"initial_supply\\\":1000000,\\\"initial_collateral\\\":100000}},{\\\"type\\\":\\\"deposit_op_type\\\",\\\"data\\\":{\\\"amount\\\":1000000,\\\"condition\\\":{\\\"asset_id\\\":1,\\\"slate_id\\\":0,\\\"type\\\":\\\"withdraw_signature_type\\\",\\\"data\\\":{\\\"owner\\\":\\\"XTSBS1cq3Dd1FtRQ271jyyDnYkRTRds2M1pS\\\",\\\"memo\\\":{\\\"one_time_key\\\":\\\"XTS7ropQin6yDaiC4o9mYzDXnBZQ16dyrSotZCc8otVGRgjq4FKjB\\\",\\\"encrypted_memo_data\\\":\\\"f9e47ce38aaba2ea29de4e0dd883c414c1f2d0f2ca53e5c9742781b403cfa22d3d281e1ea8ac93971052526fe5fbabd6d308434e290100d88ba390c79ac72678\\\"}}}}}],\\\"signatures\\\":[\\\"1f0c31aeadf589e21527c2e7975dfdde6b7363315e1dbc0f885d5c82479081eaa448380f059b9b382207e6905c6b7e69aac37d2995ca96716aa87cad4a02ef23d9\\\"]},\\\"override_limits\\\":true}\\n    th_a  chain_database.cpp:1921 store_pending_transaction\\n\\n    {\\\"transaction_record\\\":{\\\"index\\\":0,\\\"record_id\\\":\\\"0000000000000000000000000000000000000000\\\",\\\"block_num\\\":0,\\\"is_virtual\\\":false,\\\"is_confirmed\\\":false,\\\"is_market\\\":false,\\\"trx\\\":{\\\"expiration\\\":\\\"2015-03-19T16:06:30\\\",\\\"reserved\\\":null,\\\"operations\\\":[{\\\"type\\\":\\\"withdraw_op_type\\\",\\\"data\\\":{\\\"balance_id\\\":\\\"XTSAE5aoEjBYsWRUx6akeC9yA6vKQtBZ1VZZ\\\",\\\"amount\\\":50000100000,\\\"claim_input_data\\\":\\\"\\\"}},{\\\"type\\\":\\\"create_asset_op_type\\\",\\\"data\\\":{\\\"symbol\\\":\\\"DICE\\\",\\\"name\\\":\\\"DICE\\\",\\\"description\\\":\\\"DICE\\\",\\\"public_data\\\":null,\\\"issuer_type\\\":4,\\\"issuer_id\\\":1,\\\"maximum_share_supply\\\":1000000000000000,\\\"precision\\\":100,\\\"initial_supply\\\":1000000,\\\"initial_collateral\\\":100000}},{\\\"type\\\":\\\"deposit_op_type\\\",\\\"data\\\":{\\\"amount\\\":1000000,\\\"condition\\\":{\\\"asset_id\\\":1,\\\"slate_id\\\":0,\\\"type\\\":\\\"withdraw_signature_type\\\",\\\"data\\\":{\\\"owner\\\":\\\"XTSBS1cq3Dd1FtRQ271jyyDnYkRTRds2M1pS\\\",\\\"memo\\\":{\\\"one_time_key\\\":\\\"XTS7ropQin6yDaiC4o9mYzDXnBZQ16dyrSotZCc8otVGRgjq4FKjB\\\",\\\"encrypted_memo_data\\\":\\\"f9e47ce38aaba2ea29de4e0dd883c414c1f2d0f2ca53e5c9742781b403cfa22d3d281e1ea8ac93971052526fe5fbabd6d308434e290100d88ba390c79ac72678\\\"}}}}}],\\\"signatures\\\":[\\\"1f0c31aeadf589e21527c2e7975dfdde6b7363315e1dbc0f885d5c82479081eaa448380f059b9b382207e6905c6b7e69aac37d2995ca96716aa87cad4a02ef23d9\\\"]},\\\"ledger_entries\\\":[{\\\"from_account\\\":\\\"XTS7fWh5xDUQKPURU7R7zdxeRnSr7x1PL1gftPs9WaWv6sA6731BD\\\",\\\"to_account\\\":\\\"XTS7fWh5xDUQKPURU7R7zdxeRnSr7x1PL1gftPs9WaWv6sA6731BD\\\",\\\"amount\\\":{\\\"amount\\\":0,\\\"asset_id\\\":0},\\\"memo\\\":\\\"create DICE (DICE)\\\",\\\"memo_from_account\\\":null}],\\\"fee\\\":{\\\"amount\\\":50000100000,\\\"asset_id\\\":0},\\\"created_time\\\":\\\"1970-01-01T00:00:00\\\",\\\"received_time\\\":\\\"1970-01-01T00:00:00\\\",\\\"extra_addresses\\\":[]}}\\n    th_a  transaction_ledger.cpp:1277 cache_transaction\\n\\n    {\\\"payer_account\\\":\\\"alice\\\",\\\"symbol\\\":\\\"DICE\\\",\\\"name\\\":\\\"DICE\\\",\\\"description\\\":\\\"DICE\\\",\\\"max_divisibility\\\":\\\"0.01\\\"}\\n    th_a  wallet_api.cpp:618 wallet_gia_create\\n\\n    {}\\n    th_a  common_api_client.cpp:4460 wallet_gia_create\",\r\n        \"code\": 10\r\n```"}}