Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Achthar committed Aug 12, 2024
1 parent 344773e commit b9335d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@1delta/redux-multicall-viem",
"version": "1.1.6",
"version": "1.1.8",
"description": "A React + Redux lib for fetching and caching chain state via the MultiCall contract",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
4 changes: 1 addition & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ export interface Call {
gasRequired?: number
}

export interface CallStateResult extends ReadonlyArray<any> {
readonly [key: string]: any
}
export type CallStateResult = any[] | any

export interface CallState {
readonly valid: boolean
Expand Down
13 changes: 7 additions & 6 deletions src/updater.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@ async function fetchChunk(
abi: IMulticallABI,
address: multicallInfo.address,
functionName: 'multicall',
args: [chunk.map((obj) => ({
target: obj.address,
callData: obj.callData,
gasLimit: obj.gasRequired ?? DEFAULT_CALL_GAS_REQUIRED,
}))],
args: [
chunk.map((obj) => ({
target: obj.address,
callData: obj.callData,
gasLimit: obj.gasRequired ?? DEFAULT_CALL_GAS_REQUIRED,
}))
],
// we aren't passing through the block gas limit we used to create the chunk, because it causes a problem with the integ tests
blockNumber: BigInt(blockNumber)
}
)
console.debug('returnData', returnData)
if (isDebug) {
returnData.forEach(({ gasUsed, returnData, success }, i) => {
if (
Expand Down

0 comments on commit b9335d2

Please sign in to comment.