Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Jan 16, 2024
1 parent 02045f7 commit 64d2eaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bodhi/src/BodhiSigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class BodhiSigner extends AbstractSigner implements TypedDataSigner {
..._transaction,
};

const { gasLimit, usedStorage: storageLimit } = await this.provider.estimateResources(transaction);
const { gasLimit, safeStorage: storageLimit } = await this.provider.estimateResources(transaction);

const tx = await this.populateTransaction(transaction);
const data = tx.data?.toString() ?? '0x';
Expand Down
2 changes: 1 addition & 1 deletion packages/eth-providers/src/base-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ export abstract class BaseProvider extends AbstractProvider {
const { index, error } = err.asModule;
const errInfo = this.api.registry.findMetaError({
index: new BN(index),
error: new BN(error),
error: new BN(error.toU8a()[0]),
});

errMsg = `internal JSON-RPC error [${errInfo.section}.${errInfo.name}: ${errInfo.docs}]`;
Expand Down

0 comments on commit 64d2eaf

Please sign in to comment.