Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:52
    cds-amal edited #5135
  • 21:34
    swisstackle commented #5066
  • 21:32
    swisstackle commented #5066
  • 21:31
    swisstackle commented #5066
  • 21:29
    swisstackle commented #5066
  • 21:28
    swisstackle commented #5066
  • 21:28
    swisstackle commented #5066
  • 21:27
    swisstackle commented #5066
  • 20:46
    swisstackle commented #5134
  • 20:44
    Brag2gr8 commented #1727
  • 20:41
    swisstackle commented #5134
  • 20:40
    swisstackle commented #5134
  • 19:44
    swisstackle commented #5066
  • 19:43
    swisstackle commented #5066
  • 19:43
    swisstackle commented #5066
  • 19:35
    swisstackle commented #5106
  • 19:25

    haltman-at on develop

    Add sepolia support to ethersca… Merge pull request #5147 from t… (compare)

  • 19:25

    haltman-at on sepoliascan

    (compare)

  • 19:25
    haltman-at closed #5147
  • 18:52
    dongmingh commented #2928
CryptoBabies.com
@_cryptobabies_twitter
RPC_URL pointing at Alchemy API in my case..
works great!
depoyed to Eth, rinkeby, kovan, polygon and mumbai with hardhat.. i really struggled with truffle.
oh, this is the truffle room, sorry to throw you under the bus.. just sharing my experience ;)
Suraj Nair
@suraj_rtistiq_gitlab

Hello all,

I am trying to deploy my contract to Polygon mainnet. But getting this error
Saving migration to chain.Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
code: -32603,
message: 'ESOCKETTIMEDOUT',
data: { originalError: { code: 'ESOCKETTIMEDOUT', connect: false } },
stack: 'Error: ESOCKETTIMEDOUT\n'
I can see the transaction in polygonscan, but the migration is not getting saved.

Benedict
@githubBenedict
hello
Benedict
@githubBenedict
nice site @_cryptobabies_twitter
CryptoBabies.com
@cryptobabies
@XMASdaycoin thanks ;)
Watson Ladd
@wbl
So I don't understand the decision to have truffle test require a separate migration step. Looking at the examples it seems that truffle has all the information it needs to deploy the contracts used by the test to local developer instance. I particularly don't understand how is supposed to work with constructors. Does my migration for testing need to call all constructors as would be used in the test
Benedict
@githubBenedict
hello im having an issue downloading and installing ganache, terminal is outputting that electron-webpack does not exist despite installing it from https://github.com/electron-userland/electron-webpack-quick-start
any thoughts?
mpoletiek:matrix.org @mpoletiek:matrix.org waves
:(
Can anyone help?
Duke Crypto
@DukeCrypter_twitter
hi guys, does anyone here knows how to fix this error? "Unable to generate Contract ByteCode and ABI" - BSC
Smarty
@kritical0613
Hello!
mpoletiek
@mpoletiek:matrix.org
[m]
Hi!
Ghost
@ghost~61ccdced6da03739848d43aa
hi
Everyone.
zekeluo
@zekeluo
Hey, help me
I have question
hot to use improt keyword to import http link. example lmprot import "https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC20/IERC20.sol"
Can anyone help?
zekeluo
@zekeluo
Can anyone help?
swkim109
@swkim109
@zekeluo Why don't you just install OZ Contracts using npm or yarn?
zekeluo
@zekeluo
I know use install , but i want try colud import http or https into contracts
do u know @swkim109
image.png
image.png
I see this document supports HTTPS, but I don't know how to use it
can anyone help ?
thank so much
swkim109
@swkim109
@zekeluo It works in Remix.
Ben Fox
@nullfox
Hi all, it's my first time using truffle. I have a contract that correctly compiled into the build folder, whenever I try to deploy it to my local running ganache, I get the following:
Deploying 'FMan'
TypeError: Cannot read property 'return' of null
at Object._extract (/Users/fox/.nvm/versions/node/v14.18.1/lib/node_modules/truffle/build/webpack:/packages/contract/lib/reason.js:29:1)
I've searched github and can't find anything about it and I'm struggling to figure out where I've gone wrong here
Lucas Delbel
@ldelbel

Hey guys, it's my first time too. I need some help to understand the problem here. I'm trying to deploy an ERC20 contract, but it has a liquidity pool and some Uniswap instantiating happening in the constructor, which is preventing the migration to succeed. I'm doing it on ropsten using infura, and used the ropsten version of uniswap factory address and all.

constructor () {

        _rOwned[owner()] = _rTotal;

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x9c83dCE8CA20E9aAF9D3efc003b2ea62aBC08351);
         // Create a uniswap pair for this new token
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        // set the rest of the contract variables
        uniswapV2Router = _uniswapV2Router;

        //exclude owner and this contract from fee
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[MarketingWallet] = true;
        _isExcluded[Dead] = true;

        emit Transfer(address(0),owner() , _tTotal);
    }

It works fine without those lines, but when I add them, it shouts this error:

Error: while migrating TESTCOIN: Returned error: base fee exceeds gas limit

henry
@HenryzhuDev_twitter
Hey guys.when I verify my contracts in mainnet.But I get a reported error. "Cannot read properties of undefined (reading 'address')"
can anyone help ?thank so much
nepoche
@nepoche

Looking for some help with ganache usage via node.js:

I am testing a bridge application which tries to spawn multiple ganache-server instances for setup. I have the following function which was working fairly well on ganache-cli: "^6.12.2":

import ganache from 'ganache-cli';

export type GanacheAccounts = {
  balance: string;
  secretKey: string;
};

export function startGanacheServer(
  port: number,
  networkId: number,
  populatedAccounts: GanacheAccounts[],
  options: any = {}
) {
  const ganacheServer = ganache.server({
    accounts: populatedAccounts,
    port: port,
    network_id: networkId,
    _chainId: networkId,
    chainId: networkId,
    _chainIdRpc: networkId,
    ...options,
  });

  ganacheServer.listen(port);
  console.log(`Ganache Started on http://127.0.0.1:${port} ..`);

  return ganacheServer;
}

I am testing another process in parallel - a relayer - which listens to events on one ganache instance and issues transactions on the other ganache instances. I am trying to debug some functionality on the relayer and I believe the instamine feature of ganache could be having an effect.

My problem is that I attempt to change the above code to include a blockTime: 2, entry into the options of the server() call. And now in test setup I see errors such as Error: the tx doesn't have the correct nonce. account has nonce of: 15 tx has nonce of: 14.

I am in the process of attempting similar changes but bumping the version to "ganache": "^7.0.0-beta.2". I would appreciate any ideas on what could be the cause of the above error! Thank you.

Franky Limon Quamfy ( 🪞,🪞)
@FreewayHeilig_twitter
Hey guys when I run npm install truffle-hdwallet-provider --save
I get npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -4058 npm ERR! enoent An unknown git error occurred npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
Not quite sure why I'm getting this error everything is updated. J
myheadismybag
@myheadismybag_twitter

I am writing a unit tests for my Solidity smart contract using Truffle and Solidity and I can't find info how I can call a function from a different account. Able to create JS tests with multiple accounts fine. Anyone able to provide some insight?

Example Solidity test:
uint result = contract.doSomething() // How can I call this from another address?

myheadismybag
@myheadismybag_twitter

I found my solution:
First, get another account
const [owner, otherAccount] = await hre.ethers.getSigners();

Then connect them to the contract and do the call.
contract.connect(otherAccount).doSomething()

Michel Brown
@michaelbrown429:matrix.org
[m]
Hi,guys. In truffle, can you tell me why you use unbox? is it really useful?
Michel Brown
@michaelbrown429:matrix.org
[m]
@wholespace: Who are you
Naruhito Takei
@wholespace:matrix.org
[m]
Hello Everyone.
swkim109
@swkim109
@michaelbrown429:matrix.org It is just boilerplate for dapp. There are many boilerplates like that.
1 reply