Replace net_usage_words with max_net_usage_words
https://github.com/EOSIO/eosjs/blob/0159ba444d869614f0c66f1709f4dc3c504e8a5e/src/schema/chain_types.json#L52
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..
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) )
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