stellar / soroban-example-dapp

End-to-End Example Soroban Dapp
Apache License 2.0
1.03k stars 835 forks source link

Move useContractValue and useSendTransaction to @soroban-react library #71

Closed esteblock closed 1 year ago

esteblock commented 1 year ago

What problem does your feature solve?

Errors while copy pasting code when building a new Dapp for Soroban

What would you like to see?

hooks/useSendTransaction.tsx and hooks/useContractValue.tsx as part of the @soroban-react library. Will need to change a bit in order to receive the { activeChain, server } from the context (useSorobanReact() from @soroban-react/core

esteblock commented 1 year ago

Solved in PR https://github.com/stellar/soroban-example-dapp/pull/79

Now, all useContractValue and useSendTransaction functions are in @soroban-react/contracts library Follow the development in: https://github.com/esteblock/soroban-react