-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Today etherplex supports batching multiple calls to the same contract and it constructs a return object of the form result[call.caller.__name][call.fd.name] = result. The problem with this is that it writes over previous calls to the same function.
Example code to reproduce the issue:
const values = await batch(
provider,
etherplexDaiContract
.balanceOf(userAddresses[0])
.balanceOf(userAddresses[1])
.balanceOf(userAddresses[2])
)Would result in a single element array
{
"Dai": {
balanceOf: [ {_hex: "0x00", _ethersType: "BigNumber"} ]
balanceOf(address): ...
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels