Skip to content

Commit

Permalink
tiny fix by adding a casting
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Aug 21, 2024
1 parent ad8e38d commit 3500003
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/web3-eth-contract/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ import {
getSendTxParams,
isWeb3ContractContext,
} from './utils.js';
// eslint-disable-next-line import/no-cycle
import { DeployerMethodClass } from './contract-deployer-method-class.js';

type ContractBoundMethod<
Expand Down Expand Up @@ -1260,7 +1259,7 @@ export class Contract<Abi extends ContractAbi>
this,
tx,
block,
this.defaultReturnFormat ,
this.defaultReturnFormat as typeof DEFAULT_RETURN_FORMAT,
);
return decodeMethodReturn(abi, result);
} catch (error: unknown) {
Expand Down

0 comments on commit 3500003

Please sign in to comment.