Comments (5)
Current workaround is to do a:
truffle init
and make sure you don't overwrite the contract and test folders.
from erc-1155.
GOoGLE AKAUN
from erc-1155.
- [thegabelk ]
from erc-1155.
It would appear that /truffle-config.js is did not make it to the repo
Workaround:
mkdir tmp && cd tmp && truffle init
Use the resulting truffle-cofig.js
example file as a starting point for your specific needs.
Example ...
const HDWalletProvider = require('@truffle/hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();
module.exports = {
networks: {
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/YOUR-PROJECT-ID`),
network_id: 3, // Ropsten's id
gas: 5500000, // Ropsten has a lower block limit than mainnet
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
},
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: "0.5.8", // Fetch exact version from solc-bin (default: truffle's version)
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: false,
runs: 200
}
}
}
}
}
... replacing YOUR-PROJECT-ID
with your Infura (in this example) project ID
Then ...
cd erc-1155
# nvm use 12 # we need NodeJS >= 12 for ES module support
npm install
npm install @truffle/hdwallet-provider
echo 'grunt venture follow rhythm gun myth topple man hollow armed clap shoved' > .secret
truffle migrate --network ropsten
truffle test --ropsten
... replacing grunt venture follow...
with the test word mnemonic for your test Ropsten testnet wallet, having sufficient funds in account[1]
(not #0) for contract deployment. (user1
=accounts[1] in ./test/*.js code)
from erc-1155.
hey guys recently i have started with truffle framework i was trying the truffle unbox package but when i try to run the develop console in it it throws an error
`Error: The specified module could not be found.
Falling back to a NodeJS implementation; performance may be degraded.
Could not find suitable configuration file.
Truffle v5.7.2 (core: 5.7.2)
Node v16.17.0`
a help would have made my day.
from erc-1155.
Related Issues (17)
- It's not safe HOT 1
- Inline ASM Required? Can't support in Vyper HOT 4
- A question about function create() and mint() in ERC1155Mintable.sol HOT 3
- Rename ERC1155Mintable.sol HOT 4
- Cannot read property 'match' of undefined
- Why does ERC1155MixedFungibleMintable needs store the type of both fungible and non fundgibl HOT 3
- Cannot use import statement outside a module HOT 2
- What is the difference between 'create' and 'mint' functions in ERC1155Mintable.sol
- Replace the EIP-1538 Implementation with EIP-2535, the Diamond Standard
- expectThrow.js unexpected token issue HOT 1
- id from mintNonFungible duplicating, skips even numbers
- ERC1155Mintable does not follow the metadata standard
- ERC1155 Questions about ID, Metadata and uniqueness
- How to withdraw tokens from ERC1155 contract?
- Vulnerability: Nonce must be limited to 2^127 in split bit design
- Spend allowance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erc-1155.