( config: config, parameters: GetBytecodeParameters<config>, )
| 20 | |
| 21 | /** https://wagmi.sh/core/api/actions/getBytecode */ |
| 22 | export async function getBytecode<config extends Config>( |
| 23 | config: config, |
| 24 | parameters: GetBytecodeParameters<config>, |
| 25 | ): Promise<GetBytecodeReturnType> { |
| 26 | const { chainId, ...rest } = parameters |
| 27 | const client = config.getClient({ chainId }) |
| 28 | const action = getAction(client, viem_getBytecode, 'getBytecode') |
| 29 | return action(rest) |
| 30 | } |
no test coverage detected