Comments (3)
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'address') at swap (c:\Users\Young Flash\Desktop\pcake-main\swap.js:52:42) at processTicksAndRejections (node:internal/process/task_queues:96:5)
from pancake-bakery-arbitrage.
from pancake-bakery-arbitrage.
@tianji6666 Sorry for my delay. I've been away from github for a while. Straight to your question, you needed to deploy your contract in the bsc mainnet and you must have had the json key networks[97].address in your builded json file. It seems like it was not fille out and type was undefined when it tried to read at address in json file. Please make sure that you have deployed the Flashswaptest.sol contract and deploying generated a json file in the appropriae path.
const swapcontract = new web3.eth.Contract(
Swapcontract.abi,
Swapcontract.networks[networkId].address
);
from pancake-bakery-arbitrage.
Related Issues (20)
- Warning! Error encountered during contract execution [execution reverted] HOT 4
- Getting 'header not found' Error on truffle migrate --network mainnet HOT 1
- Flashswap HOT 5
- Error deploy Smartcontract HOT 1
- Warning! Error encountered during contract execution [execution reverted] HOT 14
- "Migrations" -- invalid sender. HOT 2
- Full setup HOT 3
- somebody can help? HOT 1
- Start Arbitrage Transaction Fail HOT 2
- BOT only checks one way arbitrage HOT 1
- About the bot HOT 1
- truffle migrate --network mainnet HOT 1
- Unnecessary 0 condition [flashswap.sol] HOT 1
- UnhandledPromiseRejectionWarning: Error: Returned error: execution reverted: PancakeLibrary: INSUFFICIENT_LIQUIDITY HOT 2
- how to start?
- not eht file of dotenv HOT 2
- Cannot read property address of undefined HOT 2
- Import error when trying to execute truffle compile HOT 1
- error when running indes.js
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 pancake-bakery-arbitrage.