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
ToweringTopaz
@ToweringTopaz
The word memory by itself is not a type
Jivthesh M R
@jivthesh
so what should i change it to
string memory ?
ToweringTopaz
@ToweringTopaz
Well, it looks like you're returning a state variable without referencing the function parameter at all
so I would simply remove it entirely
highly recommend reading the docs all the way through before attempting to write production code :)
Jivthesh M R
@jivthesh
ok thanks for the info
shenlia
@shenlia
Red Envelope is the first token on the decentralized tree graph-based CONFILU eSpace chain. It benefits culture, conveys good fortune and imparts wealth.
The token address: 0 xeab0f89366a58336e54c3bbc1a44c0da22190bb5
Remember is CONFILU eSpace chain, tree graph red envelope community push.
Dark horse of the year.
https://red-envelope.mystrikingly.com/
Kazuya Nomura
@kazuyanomurazer0:matrix.org
[m]
Hi, @here is it possible to deploy smart contract with wallet sign in front-end?
Please let me know if you have any idea
1 reply
BlockChain & Web developer
@blkdot
I am a full stack blockchain developer. Is there any job for me to do?
Jordan Lesson
@jordanlesson:matrix.org
[m]
Anyone have an idea on how I would add language so I can customize solidity for a specific use-case? For example, in Solidity you can make numbers in specific units/denominations by doing "12 wei", I want to make it so I can do "12 anything"?
1 reply
cameel
@cameel:matrix.org
[m]
As for the feature - there isn't now but we're working on it. It will probably be available in 0.8.17.
Here's the PR in progress if you're interested: ethereum/solidity#12656
Jordan Lesson
@jordanlesson:matrix.org
[m]
Oh nice! Thats exactly what I wanted
When do you think its going to be available?
cameel
@cameel:matrix.org
[m]
Very soon. We're releasing 0.8.16 on Monday and it won't make it but very likely it will come in the next version after that.
So 1-2 months from now.
Jordan Lesson
@jordanlesson:matrix.org
[m]
Sweet. I'm assuming you're on the development team?
cameel
@cameel:matrix.org
[m]
Yeah. I'm also actually working on that feature :)
Jordan Lesson
@jordanlesson:matrix.org
[m]
Nice! How does one actually get on that team? And is it paid or is it just to help the community?
cameel
@cameel:matrix.org
[m]
It's a normal paid job and we're actually looking for C++ developers to grow the team. If you have the skills, you could apply.
We also accept contributions of course. The compiler is free and open source. If you want to work on a feature, you can simply submit a PR.
The learning curve can be steep but there are also many easy tasks. You can also always drop in on #ethereum_solidity-dev:gitter.im channel if you need pointers.
1 reply
Jordan Lesson
@jordanlesson:matrix.org
[m]
So who technically employs you? The Ethereum Foundation?
cameel
@cameel:matrix.org
[m]
Yeah.
Jordan Lesson
@jordanlesson:matrix.org
[m]
Have you met Vitalik before?
cameel
@cameel:matrix.org
[m]
EF funds many teams working on Ethereum and related stuff, Solidity is one of them.
Haven't actually had a chance to meet him in person but that's more because everything has become remote now.
But it's not like it's hard to find him on conferences.
And what are you interested in? Are you working on a Solidity project or would you like to work on the compiler?
Jordan Lesson
@jordanlesson:matrix.org
[m]
I'm currently developing a new layer 1. I'm in the process of making it EVM compatible
1 reply
ToweringTopaz
@ToweringTopaz
@cameel:matrix.org Hi, it's good to see someone who knows the inner workings of the compiler :) I like writing gas-efficient library code and made a function for computing create2 addresses for less gas than OpenZeppelin's equivalent. By temporarily putting the free memory pointer on the stack, we get an extra 32 bytes of scratch space for hashing, without allocating new memory! But is it truly safe to mark this as "memory-safe"?
function computeAddress(
        bytes32 salt,
        bytes32 bytecodeHash,
        address deployer
    ) public pure returns (address addr) {
        assembly ("memory-safe") {
            mstore(0, deployer)
            mstore8(11, 0xff)

            mstore(0x20, salt)

            let ptr := mload(0x40)                                                                
            mstore(0x40, bytecodeHash)
            addr := keccak256(11,85)
            mstore(0x40, ptr)
        }
    }
1 reply
Rodrigo Cruz
@rodrigocruzy_twitter
hi team i need usdc test coin can you help me?
MY WALLET ERC20: 0x198399e969287912192AbbFDb600d9d7D16e5762
1 reply
ekpyron
@daniel:ekpyron.org
[m]
Hm... for all practical purposes cameel's right :-). But it's slightly tricky :-). I'm wondering if judging from our precise definition of "memory-safe" this is actually, strictly speaking memory-safe :-). We only allow messing with offsets 0-64 and beyond the value of the free memory-pointer... on the other hand you're specifically allowed to mess with the memory pointer itself for the purpose of allocating and we're not particularly clear on what precisely is valid messing with the free memory pointer...
So this is memory-safe in the sense that I can guarantee that marking it memory-safe in all compiler versions including the upcoming next one will cause no harm :-).
I'm just wondering if we can also guarantee that at no time in the future it will cause issues...
ekpyron
@daniel:ekpyron.org
[m]
The only reason I could think of would be to use dynamically allocated memory frames for moving variables within recursive functions to memory - which may rely on the free memory pointer to have sane values. But since inline assembly is free to allocate memory anyways, i.e. read from the memory pointer and write a modified value back to it, we have to guarantee that the value of the free memory value does not "suddenly" change anyways. So if we wanted to do that in the future, we couldn't do it by simply moving forward the memory pointer in the process.
So given that, I think we can guarantee that this is indeed memory-safe (now and in the future).
ToweringTopaz
@ToweringTopaz
Thank you for the informed responses. Off to make my first PR to OZ!
Sterm George
@georgesterm:matrix.org
[m]
I am blockchane developer/
I am a blockchain developer
I have a strong background of c++
Can I join your team?
Please explain in detail
please contact georgesterm742@gmail.com
1 reply
Mahima Thacker
@Thackermahima
Hello guys, Why am I getting NULL address and also not getting price while minting NFTS on opensea and polygonscan as well? What can be the reason for it programmatically?
BlockChain & Web developer
@blkdot
@Thackermahima , Is there any job for me to do? I am a full stack blockchain developer.
EllaMackness
@EllaMackness
Hi guys : who can I consult about tokenomics design and creating a DAO?
BlockChain & Web developer
@blkdot
Hi, I am a full stack blockchain developer and am looking for a new job.
I have strong experience with developing ICO, DAO, DEFI, NFT minting, NFT marketplace.
@EllaMackness , if you can give me a job, I would be happy to discuss in more detail.
Bleujj1
@Bleujj1
@EllaMackness I can
joejordan
@joejordan:matrix.org
[m]
How does one call a function that has a dynamic struct array as an argument? Is this feasible in Solidity? Ex:
struct StockType {
    string name;
    uint256 totalSupply;
}

function initialize(string memory _companyName, string memory _tickerSymbol, StockType[] memory _stockTypes)
1 reply