Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 10 2017 22:42
    @jpitts banned @etherchamp1_twitter
  • Jun 05 2016 10:33
    @chriseth banned @adamskee
Ibe Arua
@myquery
In my frontend, i am calling it like this: contractInstance.methods.get().call() but i am getting an error of invalid return values, did you ran out of gas? Does anyone does how to solve this issue. My compiler is 0.8.3
DingTian
@ReactTop
@myquery
Did you approve your contract ?
You need to approve your contract before you call get() function.
.
@hybev_twitter
hi guys
im trying to deploy the safemoon contract in remix and i get reverted, the message is that the function should be payable
can anyone help me out here?
.
@hybev_twitter
i should add i deployed the same contract 3 hours ago with no problem
DingTian
@ReactTop
Hey so are you deploying your smart contract successfully?
If you have problem, let me know
.
@hybev_twitter
are you responding to me? @ReactTop
DingTian
@ReactTop
Yes
.
@hybev_twitter
i resolved it thanks
Jeffrey Phillips Freeman
@freemo
Hello guys.. expiernced programmer here in many languages, new solidity coder struggling with a few things.
my first question (that may avoid me asking more specific questions).. is there an API doc somewhere for the abi.* functions? I found a brief list of them in one api doc but nothing that goes in depth and represents proper documentation
I'm trying to figure out how to go from abi.encodeWithSelector back to the original arguments that were encoded (I know the method signature itself cant be recovered, but the arguments should be able to be).
zillerium
@zillerium
I last was active with ethereum in 2018 and since then worked with Hyperledger Fabric. Are there any good resources to catch up? I heard it all changed a lot since 2018.
Lauri Peltonen
@microbecode
the basics are the same
just new Solidity versions, and some small hard fork updates.
zillerium
@zillerium

the basics are the same

really? I hear from everyone abt eth2 and all this excitment. I thought it had all completely changed. Is this still using ropsten, old IDEs and all the same web3 etc from UIs?

Lauri Peltonen
@microbecode
pretty much yes :) Eth2 is still way below the horizon, there's nothing usable yet - except you can stake in Eth2
check out EIP-1559, that's probably the biggest change for a while
zillerium
@zillerium

pretty much yes :) Eth2 is still way below the horizon, there's nothing usable yet - except you can stake in Eth2

Thanks. I have been in the contract market and these business guys keep saying it all changed, completely new, and saw all the media interest so I thought it was a whole new blockchain.

Lauri Peltonen
@microbecode
well, sure, Eth2 is great, but it's still very far out. You can either join the hype bandwagon or listen to boring facts :)
zillerium
@zillerium
I guess people are talking about state channels, layer 2. That was all before my time. I used all the old stuff starting in 2016
Lauri Peltonen
@microbecode
L2 is something that will possibly shake up things - Optimism is coming around summer, and it has already some important projects (like decentralized exchange Uniswap)
zillerium
@zillerium
so state channels look new to me, and l2 looks new too. So I will focus on that.
hrkrshnn
@hrkrshnn:matrix.org
[m]

@hedgar2017: The Yul optimizer currently doesn't allow specific functions to be not inlined. Maybe a workaround for your application may be the following: the Yul optimizer currently doesn't inline functions that are direct recursive. So you can call the function inside a branch that would be impossible to reach. For example,

contract C {
    function f(uint x) public returns (uint) {
        if (mulmod(x, x, 4) == 3)
            return f(x);
        return 1;
    }
}

You can replace x by something dynamic like calldataload(0). Or replace the mulmod(...) expression by, say chainid() == 0 assuming that the chainid is always non-zero, or even x * 2 == 7.

Alex Z
@hedgar2017
@hrkrshnn:matrix.org thanks! I've already managed to facilitate the optimized YUL code, but your advice may be helpful anyway.
hrkrshnn
@hrkrshnn:matrix.org
[m]
@hedgar2017: What are you trying to do by translating Yul to LLVM?
.
@hybev_twitter
does anyone here understand safemoon contract completely?
i could use some help
DingTian
@ReactTop
Hello guys , anyone can give the vision of staking reward calculation ?
  1. total supply is 100 million
  1. 10% will be available for staking
  1. total init circulating supply should be 18% and then later it should be from 30 % to 50% over year.
Can I provide highly APY for first 3 months and reduce it?
If so , what should be calculation formula ?
.
@hybev_twitter
im trying to create a token that when a tx happens some % goes to liquidity and some % goes to a specific wallet address, is that possible?
can someone point out where i should start?
DingTian
@ReactTop
@hybev_twitter
Are you going to send some of minted tokens to liquidity pool and others of that to specific wallet address?
If so , It is possible .
You need to make new chief smart contract and the functionality to implement these into it.
and liquidity pool contract address and your wallet address will be used to transfer the percentage amount of created tokens
Alex Z
@hedgar2017
@hrkrshnn:matrix.org the PLONK-targeted VM for executing zkSync transactions with full Solidity support.
Stephen Eddy
@steddyman
Hi chaps. What is the exact string I need to get the keccak hash for to get the function hash for this external function?
function createPair(address tokenA, address tokenB) external returns (address pair);
Stephen Eddy
@steddyman
Do I need to include the external and returns?
.
@hybev_twitter
@ReactTop have you read the safemoon contract?
DingTian
@ReactTop
@hybev_twitter I have seen it before . what is problem with it?