You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
hi, getSampledUsage function was working normally, but nowadays i only get assertion error from it.
What might be the reason, is there way that i can solve this? if not, what default values that i can use for Uint128 cpu and net values that returns from sample usage method that is used for cpu and net price calculations.
if none of these works, is there any other way that i can get cpuPrice, netPrice of the current state?
error: Assertion failed
stack: 'Error: Assertion failed\n at assert (/Users/dante/Documents/Codes/eos/node_modules/bn.js/lib/bn.js:6:21)\n at BN.divmod (/Users/dante/Documents/Codes/eos/node_modules/bn.js/lib/bn.js:2342:5)\n at BN.div (/Users/dante/Documents/Codes/eos/node_modules/bn.js/lib/bn.js:2438:17)\n at divCeil (/Users/dante/Documents/Codes/eos/node_modules/@wharfkit/resources/src/index.ts:80:21)\n at Resources.<anonymous> (/Users/dante/Documents/Codes/eos/node_modules/@wharfkit/resources/src/index.ts:73:18)\n at Generator.next (<anonymous>)\n at fulfilled (/Users/dante/Documents/Codes/eos/node_modules/@wharfkit/resources/node_modules/tslib/tslib.js:166:62)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)'
hi, getSampledUsage function was working normally, but nowadays i only get assertion error from it.
What might be the reason, is there way that i can solve this? if not, what default values that i can use for Uint128 cpu and net values that returns from sample usage method that is used for cpu and net price calculations.
if none of these works, is there any other way that i can get cpuPrice, netPrice of the current state?
thanks, dante