drizzle icon indicating copy to clipboard operation
drizzle copied to clipboard

sendArgs not available in @drizzle/vue-plugin's drizzle-contract-form

Open hellowodl opened this issue 5 years ago • 4 comments
trafficstars

In the React component an extra property called sendArgs is available, which allows one to alter the options object given to Web3.

The same functionality isn't available in the Vue plugin.

hellowodl avatar May 30 '20 23:05 hellowodl

Hi @hellowodl ,

Can you try methodArgs for the Vue plugin?

https://github.com/trufflesuite/drizzle/blob/df7990062e0021469c9d068e3608eff72a6757a0/packages/vue-plugin/src/components/ContractForm.vue#L91-L93

cds-amal avatar May 31 '20 07:05 cds-amal

Hi Amal.

I'm aware of methodArgs, though methodArgs is preserved for passing thr function arguments, whereas sendArgs in React (from my understanding) allows one to mutate the Web3 transaction options.

On Sun, May 31, 2020, 2:52 AM Amal Sudama [email protected] wrote:

Hi @hellowodl https://github.com/hellowodl ,

Can you try methodArgs for the Vue plugin?

https://github.com/trufflesuite/drizzle/blob/df7990062e0021469c9d068e3608eff72a6757a0/packages/vue-plugin/src/components/ContractForm.vue#L91-L93

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/trufflesuite/drizzle/issues/89#issuecomment-636436269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJX65UHRJ65FMRJT2YAQDMTRUIECRANCNFSM4NO4XITQ .

hellowodl avatar Jun 01 '20 17:06 hellowodl

These plugins need better documentations.

However, React plugin's sendArgs and Vue plugin's methodArgs are analogous. I think this issue should be closed.

hantuzun avatar Sep 03 '20 15:09 hantuzun

Can someone please answer this. https://stackoverflow.com/questions/66198532/transfer-ether-using-vue-drizzle-plugin-to-payable-functions

surajbeston avatar Feb 14 '21 20:02 surajbeston