GoodDollar / GoodWeb3-Mono

mono repo with GoodDollar's web3 UI components and SDK
https://gooddollar-storybook.vercel.app
1 stars 1 forks source link

add: useContractFunctionWithDefaultFees #49

Closed sirpy closed 1 year ago

sirpy commented 1 year ago

Description

About /GoodProtocolUI/issues/335

sirpy commented 1 year ago

@L03TJ3 i've fixed the bridge. i was missing a paramter when encoding the transferAndCall. Usually when you see a gas issue in metamask it is because the dapp failed to estimate the gas because the TX is going to revert.

I've also fixed the bridge to work with correct token decimals. I've started using CurrencyValue more and refactored to simplify the way you handled the tokens decimals. please review and that i'm not breaking anything.

i've also tried to improve references between good-design and sdk-v2 in typescript and tried to fix the types issue by adding custom.d.ts to typeroots in tsconfig