@@ -3,8 +3,8 @@ package cc.etherspace
33import cc.etherspace.calladapter.CallAdapter
44import cc.etherspace.calladapter.PassThroughCallAdaptor
55import cc.etherspace.web3j.Web3jAdapter
6- import com.fasterxml.jackson.databind.exc.MismatchedInputException
76import com.google.common.reflect.TypeToken
7+ import mu.KotlinLogging
88import okhttp3.OkHttpClient
99import java.io.IOException
1010import java.lang.reflect.AnnotatedElement
@@ -86,6 +86,8 @@ class EtherSpace(val web3: Web3,
8686
8787 val encodedFunction = web3.abi.encodeFunctionCall(args, functionName)
8888 val transactionHash = np.provideNonce(web3, cd.address) { nonce ->
89+ logger.debug { " invokeTransaction:from=${cd.address} ,to=$toAddress ,function=$functionName ,args=$args ,options=$options " }
90+
8991 val transactionObject = Web3 .TransactionObject (cd.address,
9092 toAddress,
9193 encodedFunction,
@@ -113,6 +115,8 @@ class EtherSpace(val web3: Web3,
113115 args : List <Any >,
114116 returnType : Type ,
115117 options : Options ): Any {
118+ logger.debug { " invokeView:to=$toAddress ,function=$functionName ,args=$args " }
119+
116120 val encodedFunction = web3.abi.encodeFunctionCall(args, functionName)
117121 val transactionObject = Web3 .TransactionObject (null ,
118122 toAddress,
@@ -166,5 +170,6 @@ class EtherSpace(val web3: Web3,
166170 inline fun build (block : Builder .() -> Unit ) = Builder ().apply (block).build()
167171 internal const val GET_TRANSACTION_RECEIPT_POLLING_INTERVAL_IN_MS = 5_000L
168172 internal const val GET_TRANSACTION_RECEIPT_POLLING_ATTEMPTS = 60
173+ private val logger = KotlinLogging .logger {}
169174 }
170175}
0 commit comments