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
shares is parsed as a Decimal but that's currently broken. It errors with 'Fewer than two elements in split result. This must not happen here.'. That's because the patch does .search(/./') when it should be.search(/\./') (lost in the .patch creation).
After fixing that is a deeper error at this line in staking.ts,
Describe the bug
We have a patch for
@cosmjs/math
to eschew bn.js, which is huge and doesn't play well with SES.It has multiple problems.
To Reproduce
Use
ibc-mocks.ts
to make a call like,shares
is parsed as a Decimal but that's currently broken. It errors with'Fewer than two elements in split result. This must not happen here.'
. That's because the patch does.search(/./')
when it should be.search(/\./')
(lost in the .patch creation).After fixing that is a deeper error at this line in staking.ts,
Our version of the
Decimal
object doesn't haveatomics
so that fails. In the real oneatomics
is a BN.js object, which we're trying to avoid.Expected behavior
Constructing a QueryDelegatorDelegationsResponse works.
Platform Environment
@endo/init@1.1.4
ses@1.8.0
Additional context
We've run into hurdles before,
Ideally we could use cosmjs without bn.js,
The text was updated successfully, but these errors were encountered: