Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion meetupdao/UI/web3/proposals.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ <h3>New Proposal</h3>
<input type="text" name="beneficiary" id="beneficiary" placeholder="0x123456..."><br>
Ether amount(optional)<br>
<input type="text" name="etherAmount" id="etherAmount" placeholder="1234"><br>
Proposal Time(optional)<br>
<input type="text" name="proposalTime" id="proposalTime" placeholder="1234.."><br>
Job Description<br>
<input type="text" name="jobDescription" id="jobDescription" placeholder="MyString"><br>
Transaction bytecode(optional)<br>
Expand All @@ -48,4 +50,4 @@ <h3>New Proposal</h3>
<script type="text/javascript" src="./abi.js"></script>
<script type="text/javascript" src="./proposals.js"></script>

</html>
</html>
5 changes: 3 additions & 2 deletions meetupdao/UI/web3/proposals.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@

var beneficiary=document.getElementById("beneficiary").value;
var etherAmount=document.getElementById("etherAmount").value;
var proposalTime=document.getElementById("proposalTime").value;
var jobDescription=document.getElementById("jobDescription").value;
var transactionBytecode=document.getElementById("transactionBytecode").value;

var myTokenContract = web3.eth.contract(abi).at(address);
return myTokenContract.newProposalInEther(beneficiary, etherAmount, jobDescription, fileHash, transactionBytecode, function (error, result) {})
return myTokenContract.newProposalInEther(beneficiary, etherAmount, proposalTime, jobDescription, fileHash, transactionBytecode, function (error, result) {})


}
Expand Down Expand Up @@ -144,4 +145,4 @@ function getProposals(){

}

getProposals();
getProposals();