5afe/contract-proxy-kit

ethers transactionResponse object

Closed this issue · 1 comments

Hi,

When using the cpk the ethers transactionResponse obj seems to be modified and looks like this:

image

So the TransactionResponse is itself inserted into an Object with the only other property thereof being the hash property. But this already exists on the TransactionResponse object.

It makes the syntax a bit unnecessarily cumbersome:

const txResponse = await cpk.execTransactions(..
await txResponse.transactionResponse.wait();

instead of plain
await txResponse.wait()

This will be implemented instead: #118