{"action":"created","issue":{"url":"https://api.github.com/repos/EOSIO/eosjs/issues/122","repository_url":"https://api.github.com/repos/EOSIO/eosjs","labels_url":"https://api.github.com/repos/EOSIO/eosjs/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/EOSIO/eosjs/issues/122/comments","events_url":"https://api.github.com/repos/EOSIO/eosjs/issues/122/events","html_url":"https://github.com/EOSIO/eosjs/issues/122","id":326820155,"node_id":"MDU6SXNzdWUzMjY4MjAxNTU=","number":122,"title":"why get table stat when do other aciton on myself contract??","user":{"login":"wchh","id":15340935,"node_id":"MDQ6VXNlcjE1MzQwOTM1","avatar_url":"https://avatars3.githubusercontent.com/u/15340935?v=4","gravatar_id":"","url":"https://api.github.com/users/wchh","html_url":"https://github.com/wchh","followers_url":"https://api.github.com/users/wchh/followers","following_url":"https://api.github.com/users/wchh/following{/other_user}","gists_url":"https://api.github.com/users/wchh/gists{/gist_id}","starred_url":"https://api.github.com/users/wchh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wchh/subscriptions","organizations_url":"https://api.github.com/users/wchh/orgs","repos_url":"https://api.github.com/users/wchh/repos","events_url":"https://api.github.com/users/wchh/events{/privacy}","received_events_url":"https://api.github.com/users/wchh/received_events","type":"User","site_admin":false},"labels":[{"id":661334100,"node_id":"MDU6TGFiZWw2NjEzMzQxMDA=","url":"https://api.github.com/repos/EOSIO/eosjs/labels/help","name":"help","color":"128A0C","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-27T14:18:42Z","updated_at":"2018-06-01T13:44:23Z","closed_at":null,"author_association":"NONE","body":"use cleos push action OK, but :\r\n``` code\r\neos.contract('xpa.ex').then(token => {\r\n  return token.deposit('w.1', '100.0000 SYS', '')\r\n```\r\nwill return\r\n```\r\nFC Exception encountered while processing chain.get_currency_stats: 3060003 contract_table_query_exception: Contract Table Query Exception\r\nTable stat is not specified in the ABI\r\n    {\"table\":\"stat\"}\r\n    thread-0  chain_plugin.cpp:522 get_table_type\r\n```\r\n\r\nwhy call the ***get_currency_stats***  API\r\n\r\n```code\r\nmethod: 'get_table_type' } http://eos3:8888/v1/chain/get_currency_stats {\"code\":\"xpa.ex\",\"symbol\":\"XPA\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/EOSIO/eosjs/issues/comments/393885010","html_url":"https://github.com/EOSIO/eosjs/issues/122#issuecomment-393885010","issue_url":"https://api.github.com/repos/EOSIO/eosjs/issues/122","id":393885010,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Mzg4NTAxMA==","user":{"login":"leordev","id":6147142,"node_id":"MDQ6VXNlcjYxNDcxNDI=","avatar_url":"https://avatars1.githubusercontent.com/u/6147142?v=4","gravatar_id":"","url":"https://api.github.com/users/leordev","html_url":"https://github.com/leordev","followers_url":"https://api.github.com/users/leordev/followers","following_url":"https://api.github.com/users/leordev/following{/other_user}","gists_url":"https://api.github.com/users/leordev/gists{/gist_id}","starred_url":"https://api.github.com/users/leordev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leordev/subscriptions","organizations_url":"https://api.github.com/users/leordev/orgs","repos_url":"https://api.github.com/users/leordev/repos","events_url":"https://api.github.com/users/leordev/events{/privacy}","received_events_url":"https://api.github.com/users/leordev/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T13:44:23Z","updated_at":"2018-06-01T13:44:23Z","author_association":"NONE","body":"I also have this question... I have a completely different contract and structs but I'm using `asset` as a parameter of one of my actions and I think it triggers `eosjs` to check if it's a valid `asset` by checking the `stats` table of my contract (which I don't have, and also it does not make sense to).\r\n\r\nThe thing is, if I try to execute the same action through `cleos` it works perfectly, because I don't think `cleos` try to validate the asset and I think it's a task of the contract itself. Thoughts?"}}
{"actor":{"display_login":"leordev"}}