Skip to content

Commit

Permalink
feat(abi): make Multicall3.Aggregatable implement IntoCallRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialPB committed Sep 13, 2024
1 parent cb021fa commit 02160ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethers-abi/src/main/kotlin/io/ethers/abi/call/Multicall3.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import io.ethers.core.types.AccountOverride
import io.ethers.core.types.Address
import io.ethers.core.types.Bytes
import io.ethers.core.types.CallRequest
import io.ethers.core.types.IntoCallRequest
import io.ethers.providers.middleware.Middleware
import java.math.BigInteger
import java.util.concurrent.ConcurrentHashMap
Expand Down Expand Up @@ -481,7 +482,7 @@ class Multicall3(
* A contract call that can be aggregated via [Multicall3] contract function call. Only [to], [value] and [data]
* are used from the original call for the aggregation.
* */
interface Aggregatable<T> {
interface Aggregatable<T> : IntoCallRequest {
val provider: Middleware

val to: Address?
Expand Down

0 comments on commit 02160ac

Please sign in to comment.