Developer-DAO / web3-ui

A React UI library for Web3

Home Page:https://web3-ui.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switch array `args` to `arguments` on `execute` from `useTransaction`

berteotti opened this issue · comments

It's easier to call this function as we were calling the original function.

Current implementation:

await execute([1,
	{
		value: ethers.utils.parseEther("0.05"),
	}
])

Suggested implementation:

await execute(1,
	{
		value: ethers.utils.parseEther("0.05"),
	}
)

Thanks, that's a great suggestion. I'll take care of this.

Thanks, that's a great suggestion. I'll take care of this.

I would like to contribute. I can do it if you don't mind 😉

Oh of course, go ahead!