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
Because of this when get receipt this error happens:
Unhandled Rejection (Error): invalid BigNumber string (argument="value", value="TxTypeLegacyTransaction", code=INVALID_ARGUMENT, version=bignumber/5.5.0)
I think just adding a line of code which is not perfect but mitigates the error:
At 195 line of providers/src.ts/formatter.ts
if (typeof(number) === "string") { return 0; }
and 126 line need to be:
cumulativeGasUsed: Formatter.allowNull(bigNumber);
The text was updated successfully, but these errors were encountered:
According to Klaytn network manual (https://docs.klaytn.com/bapp/json-rpc/api-references/klay/transaction)
they returns the transaction type value as a string.
Because of this when get receipt this error happens:
Unhandled Rejection (Error): invalid BigNumber string (argument="value", value="TxTypeLegacyTransaction", code=INVALID_ARGUMENT, version=bignumber/5.5.0)
I think just adding a line of code which is not perfect but mitigates the error:
At 195 line of providers/src.ts/formatter.ts
if (typeof(number) === "string") { return 0; }
and 126 line need to be:
cumulativeGasUsed: Formatter.allowNull(bigNumber);
The text was updated successfully, but these errors were encountered: