eosjs icon indicating copy to clipboard operation
eosjs copied to clipboard

Replace net_usage_words with max_net_usage_words

Open yepp4you opened this issue 8 years ago • 3 comments

https://github.com/EOSIO/eosjs/blob/0159ba444d869614f0c66f1709f4dc3c504e8a5e/src/schema/chain_types.json#L52

yepp4you avatar May 26 '18 01:05 yepp4you

This was changed at some point. Review the version table in the README to make sure your using eosjs with the correct version of nodeos..

jcalfee avatar May 26 '18 12:05 jcalfee

There are still references to both in the back end code. The thing that matters is the transaction header serialization definition:

//transaction.hpp
EOSLIB_SERIALIZE( transaction_header, (expiration)(ref_block_num)(ref_block_prefix)(net_usage_words)(max_cpu_usage_ms)(delay_sec) )

jcalfee avatar May 26 '18 13:05 jcalfee

It did so at [email protected], it seems to be no problem because it is the net_usage_words from the latest version [email protected]. Thank you.

https://github.com/EOSIO/eosjs-api/blob/57f13f139af3454fb3306c969d9416cebb6c2a66/src/exported-helpers.js#L57

yepp4you avatar May 27 '18 01:05 yepp4you