Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
repair
Find the Root.prototype.resolveAll function again at the bottom of the file, delete that function block, and replace it precisely with the following clean structure:
/**
* @override
*/
Root.prototype.resolveAll = function resolveAll() {
if (!this._needsRecursiveResolve) return this;
if (this.deferred.length) {
this.deferred = [];
}
return Namespace.prototype.resolveAll.call(this);
};
Code Change Steps (Using toBeHex + getBytes) Make sure at the top of the proto.ts file
cumulativeRewardAmounts: cumulativeRewardAmounts.map(toBeArray)
use
const reward = {
recipient: getBytes(recipient),
tokenAddresses: tokenAddresses.map((addr) => getBytes(addr)),
cumulativeRewardAmounts: cumulativeRewardAmounts.map((amt) => {
const hex = BigInt(amt.toString()).toString(16);
return Buffer.from(hex.length % 2 === 0 ? hex : '0' + hex, 'hex');
})
};
Expected Behavior
No response
Steps To Reproduce
- In this environment...
- With this config...
- Run '...'
- See error...
Environment
- npm:
- Node.js:
- OS Name:
- System Model Name:
- npm config:
; copy and paste output from `npm config ls` here
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
repair
Find the Root.prototype.resolveAll function again at the bottom of the file, delete that function block, and replace it precisely with the following clean structure:
Code Change Steps (Using toBeHex + getBytes) Make sure at the top of the proto.ts file
use
Expected Behavior
No response
Steps To Reproduce
Environment
; copy and paste output from `npm config ls` here