Replies: 3 comments 1 reply
-
It is a JavaScript syntax (an object argument). It is a wrapper call by ethers-js to the provider function that needs a RequestArguments interface:
Here is the documentation: |
Beta Was this translation helpful? Give feedback.
-
Thanks @coinfeigm I think in JavaScript don't exist some kind of declarations as type string. in js we have so I think that the |
Beta Was this translation helpful? Give feedback.
-
The function
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I meet this syntax in index.js on line: 16 in lesson 8 and it see to me to me more TypeScript as JavaScript. I don't understand what the
:
aftermethod
mean.It looking to be a key : value in a Object, but witch Object...?
await ethereum.request({ method: "eth_requestAccounts" })
Beta Was this translation helpful? Give feedback.
All reactions