Cannot deploy to Ropsten with truffle

I keep getting an error when trying to deploy a project to ropsten. This is my config file. Any idea??? const HDWalletProvider = require(“@truffle/hdwallet-provider”); const infuraKey = “xxxxxlmaoxxxxx”; const fs = require(‘fs’); const mnemonic = fs.readFileSync(“.secret”).toString().trim(); module.exports = { networks: { development: { provider: () => new HDWalletProvider(mnemonic, “http://127.0.0.1:7545”), network_id: “” // Any network (default:…

Send message in blockchain network using web3.shh

I want to send message from one address to another in the ethereum network using shh module of web3js library. const Web3 = require(‘web3’); const url = ‘http://localhost:7545’; const web3 = new Web3(url); const eventProvider = new Web3.providers.WebsocketProvider(‘ws://localhost:7545’) web3.setProvider(eventProvider); await web3.eth.net.isListening(); const POW_TIME = 100; const TTL = 20; const POW_TARGET = 2; await web3.shh.post({…

Whats the best way of translating this struct?

Let’s say I must have this data structure: ├── Operations (struct) │ ├── date_begining (uint) │ └── date_end (uint) │ └── responsible (address) │ └── type **(?)** │ ├── Observation (struct) │ | └── Production units (string) │ | └── Parcel (string) | OR │ ├── ObservationPrague (struct) │ | └── Fon state (bool) │…