UNPKG

ethers-tools

Version:

Contains tools for work with web3 contracts.

9 lines (7 loc) 248 B
import { isStaticMethod } from './is-static.js'; /** * @param {import('../../types/entities').ContractCall[]} calls * @returns {boolean} */ export const isStaticArray = (calls) => !calls.some((call) => !isStaticMethod(call.stateMutability));