Comments (11)
a) I need to add ABI support to eos.transaction ... As you discovered, you can use eos.contract instead..
b) eosioc tells me you may be using dawn 3 so this may be related.. There are many changes. I'll start adding support next week. If you need a work-around, try using the dawn2 build tag.
from eosjs.
It is mandatory to download the ABI and it will automatically cache. I don't have to cache it.
from eosjs.
Did you go back to dawn2? You may need dawn3 updates, I'm working on that now..
from eosjs.
b) eosioc tells me you may be using dawn 3 so this may be related.. There are many changes. I'll start adding support next week. If you need a work-around, try using the dawn2 build tag.
Yeah, I am using https://github.com/EOSIO/eos/releases/tag/DAWN-2018-01-31-ALPHA probably its because of that! 👍If you want the code for testing you can find it: ( https://github.com/kesar/twitbot/tree/master/contracts/twitbot ) it works fine from command line.
Isn't possible to upload contracts without abi ? I guess it needs to be supported a contract without abi as well.
from eosjs.
Isn't possible to upload contracts without abi ? I guess it needs to be supported a contract without abi as well.
Perhaps, I can see a scheduled event used in this way. But If a contract does not have an ABI, there are no action methods to call so the eos.contract lookup method would have no use anyways. So the ABI is required for the eos.contract lookup so it will have one or more actions to call.
from eosjs.
a) npm [email protected] will lookup the ABI for each message when you provide a full transaction.
b) tracked under another ticket: #25
Now, back to abi caching .. I'm going to look at the dawn 3 get_code API and see if that changed. What I really need is a get_abi and a immutable flag, this way I know to automatically re-fresh the cache frequency if the abi is mutable. I assume you have no issues with memory right? I'm thinking I can cache all ABIs but I need to refresh in some cases.
from eosjs.
a) npm [email protected] will lookup the ABI for each message when you provide a full transaction.
👍 awesome. I'm gonna test it :)
from eosjs.
yeah, transaction now doesnt return the abi cache issue. 👍
I'm getting something different not related to this issue, perhaps you can also throw some light? The type is uint64, but passing quantity: 1
it doesnt work. Any idea how should I send a uint64 format ?
Thanks!
from eosjs.
Use a string, if the number is not quoted javascript will change your number to be about 53 bits even if the number is larger..
from eosjs.
Use a string, if the number is not quoted javascript will change your number to be about 53 bits even if the number is larger..
It seems that its not doing it, perhaps an issue in the fcbuffer?: I changed it to quantity: "1"
Error: Required uint64 tip.2 message.data transaction.messages
at validateInt (/Users/kesar/PhpstormProjects/twitbot/app/node_modules/fcbuffer/lib/types.js:677:11)
at Object.fromObject (/Users/kesar/PhpstormProjects/twitbot/app/node_modules/fcbuffer/lib/types.js:444:7)
at Object.fromObject (/Users/kesar/PhpstormProjects/twitbot/app/node_modules/fcbuffer/lib/struct.js:144:34)
at messageDataFromObject (/Users/kesar/PhpstormProjects/twitbot/app/node_modules/eosjs/lib/structs.js:428:29)
at Object.fromObject (/Users/kesar/PhpstormProjects/twitbot/app/node_modules/fcbuffer/lib/struct.js:141:15)
at Object.fromObject (/Users/kesar/PhpstormProjects/twitbot/app/node_modules/fcbuffer/lib/types.js:320:28)
at Object.fromObject (/Users/kesar/PhpstormProjects/twitbot/app/node_modules/fcbuffer/lib/struct.js:144:34)
at /Users/kesar/PhpstormProjects/twitbot/app/node_modules/eosjs/lib/write-api.js:553:34
at /Users/kesar/PhpstormProjects/twitbot/app/node_modules/eosjs/lib/write-api.js:699:7
at /Users/kesar/PhpstormProjects/twitbot/app/node_modules/eosjs-api/lib/exported-helpers.js:65:7
from eosjs.
Oh ok! so that would be the problem :)
Feel free to ping me in telegram ( @kesarito ) if you want me to help with testing
I will close this issues as the ABI thing is solved! Thanks 🙏
from eosjs.
Related Issues (20)
- How to generate eos address from xpub HOT 1
- How to set the blockBehind when sending transaction HOT 4
- about the return value of get_currency_balance
- reversible_guard_exception: Reversible block log usage is at unsafe levels reversible free: 2097120, guard size: 2097152 HOT 3
- Can i use eosjs on Google App Scripts platform? HOT 2
- How "data" should look in NFT transaction? HOT 1
- How to get a list of my assets (NFTs)? HOT 3
- When i run the yarn build-web not working? HOT 2
- I am having issues while playing the FW game as the account type is changed from Active to Owner HOT 1
- TypeError in eosjs-jsonrpc.js HOT 1
- claim_signature
- Can't find variable: Buffer
- A RpcError when trying to add a new permission to an existing account
- JsSignatureProvider error when create new JsSignatureProvider
- Please help with errors - Modul type for ES and cannot use import statement outside a module
- Check for irreversibality once the transaction has been sent through api.transact? HOT 1
- Unrecognized signature format for WebAuthn signature HOT 1
- Integration Test failing due to new field in `get_info` (first_block_num)
- Getting error : -Missing ATOMIC_ATTRIBUTE in pair_string_ATOMIC_ATTRIBUTE when using basic-usage/00_browser.md HOT 1
- Circular dependency issues HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eosjs.