Giter Site home page Giter Site logo

docs's People

Contributors

0xfirekeeper avatar adam-maj avatar arcoraven avatar atbe avatar atharvadeosthale avatar avneesh0612 avatar ciaranightingale avatar dependabot[bot] avatar eabdelmoneim avatar elasticbottle avatar iketw avatar imgbot[bot] avatar jarrodwatts avatar jnsdls avatar joaquim-verges avatar kien-ngo avatar kumaryash90 avatar manantank avatar mykcryptodev avatar nachoiacovino avatar nkrishang avatar omahs avatar rahul-thirdweb avatar rattrayd11 avatar razacodespython avatar robertandre avatar saminacodes avatar sangster009 avatar thomchardon avatar warengonzaga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docs's Issues

Mismatch between code example and type information

About

const sdk = ThirdwebSDK.fromSigner(signer, {
clientId: "YOUR_CLIENT_ID", // Use client id if using on the client side, get it from dashboard settings
secretKey: "YOUR_SECRET_KEY", // Use secret key if using on the server, get it from dashboard settings
});

In this example, the second argument passes an object containing the clientId and secretKey.

However, the following type information shows that no object containing those two is passed.
The documentation needs to be corrected.

https://github.com/thirdweb-dev/js/blob/ec36b13a30e0071548df0b7a6eb5299e2e65e4f9/packages/sdk/src/evm/core/sdk.ts#L181-L186

https://github.com/thirdweb-dev/js/blob/ec36b13a30e0071548df0b7a6eb5299e2e65e4f9/packages/chains/src/types.ts#L15-L46

A suggestion for updating the "useContractRead" documentation.

Issue: When using the read functions (via useContractRead), the sender address is not automatically sent, causing msg.sender to be inaccessible to any view function within the smart contract. To work around this, I must explicitly fetch and pass the address using the "from" property in overrides. demonstrated in the image below calling the function with and without "from" property in overrides.

[Image: Image with and without Overrides]
Screenshot 2023-09-08 091943 (2)

Suggestion: It would be beneficial to enhance the user experience by adding a note or highlighting the importance of including the sender's address in view functions. Furthermore, consider implementing a boolean toggle that allows users to enable or disable the automatic forwarding of the sender's address, providing greater flexibility in contract interaction.

note:- above suggestion can be applicable to both Docs and Dashboard.

document update or any thing! please let me know, i'm happy to contribute.

Thank you.

A suggestion to add the code for nextJs 13 App router

As we already now NEXTJS is doing great and evolving constantly . One of there major update is Its APP ROUTER which is easy to use but if some one is building with app router there is many point where Newbie can stuck. it would be great if someone also add the App Router Code snippet there too.

I'm also open to contribute in the documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.