trufflesuite / drizzle

Reactive Ethereum dapp UI suite
906 stars 238 forks source link

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

Open hellowodl opened 4 years ago

hellowodl commented 4 years ago

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.

cds-amal commented 4 years ago

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

hellowodl commented 4 years ago

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 notifications@github.com 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 .

hantuzun commented 3 years ago

These plugins need better documentations.

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

surajbeston commented 3 years ago

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