Failing to create proposal through Snapshot.js #1772
-
Hello, I am trying to integrate Snapshot into my dApp and am struggling with a few things since the documentation is very sparse. When I go to create a proposal, I have no idea what to set the The main issue right now is when I go to publish, I get the following error:
Does anyone have any ideas? I am passed in the wallet address into the second parameter and I am not setting the Thanks for the help, James |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I think I can answer for the first part, |
Beta Was this translation helpful? Give feedback.
-
@jamesdobry Hello,
This code sandbox https://codesandbox.io/s/vibrant-dawn-u7r43 might be helpful |
Beta Was this translation helpful? Give feedback.
-
import "./App.css"; function App() { const hub = "https://testnet.snapshot.org"; const Proposal = async () => {
}; return ( {" "} Create Proposal); } export default App; i am above code for the proposal creation . its giving wrong proposal format . kindly help |
Beta Was this translation helpful? Give feedback.
@jamesdobry Hello,
snapshot
is the block number of the network, ideally, pass the latest block number while creating a proposalmetadata
can be ignoredNot sure what is the error is about, is your code open-source?
This code sandbox https://codesandbox.io/s/vibrant-dawn-u7r43 might be helpful