Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TruffleContract is not define #42

Open
yash061102 opened this issue Apr 17, 2023 · 1 comment
Open

TruffleContract is not define #42

yash061102 opened this issue Apr 17, 2023 · 1 comment

Comments

@yash061102
Copy link

Screenshot 2023-04-18 at 12 49 45 AM

@Yash-verma18
Copy link

The given index.html is old, hence most of the scripts url is outdated, Replace all the scripts in index.html file with the following :

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="vendor/bootstrap/dist/js/bootstrap.min.js"></script>

<!-- following truffle contract is retarder/old -->
<!-- <script src="vendor/truffle-contract/dist/truffle-contract.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/truffle-contract.min.js"></script>

<script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js"></script>

<script src="app.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants