remove bundlesFromAddresses & getTransfers. Remove transfers return value from getAccountData
What is the purpose of your code change?
As stated in #309, iota.lib.js deprecated getBundlesFromAddresses due to its poor performance, as well as getTransfers for which the logic entirely relies on getBundlesFromAddresses.
As a side effect, getAccountData does not return the transfers in its response.
Resources links
Deprecation of getBundlesFromAddresses can be found here.
// `getBundlesFromAddress` has been deprecated because of its poor performance.
// Traversing and validating bundles gets slower as bundle instances increase.
// Use `findTransactionObjects` on `addresses` and lazily fetch the bundles when needed.
Deprecation of getTransfers can be found here.
// `getTransfers` has been deprecated because of poor performance (regenerates addresses
// and calls `getBundlesFromAddresses`).
// Use `findTransactionObjects` as replacement and prefer to lazily fetch complete bundles,
// if and when required.
I noticed that transfers in getAccountData will be replaced by transactions returned from findTransactions .
More information can be found here (also refer to the other comments of this file)
I will add that.
Added.
However, will need to check why findTransactionsByAddresses does not return me the hash of bunde_5_trx_1. Probably expected behavior, but kind of odd.