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
aniu
@aniu168_twitter
solidity doc should be modified to be fit to eth2.0
Bleujj1
@Bleujj1
Hello
Pi
@p-i-
I'm trying to get the first bite of the solidity bobapple. It's tricky, as there's a complete ecosystem to understand in order to attain to a 'HelloWorld'. I guess a 'HelloWorld' might involve creating a coin, launching it on a chain, and then buying/selling from a metamask wallet.
I'm not even sure precisely what a HelloWorld deliverable would look like.
I'm looking around for a good starting point.
Some resource that is fast-paced, but at the same time fills the gaps. I've coded a variety of domains over a number of years, and have some familiarity with blockchain concepts. I've even written code for buying/selling on pancakeswap and monitoring transactions on BNB chain, though it's a fuzzy memory.
Can anyone recommend a good starting point?
2 replies
I'm gona go with the official doc https://docs.soliditylang.org/en/v0.8.17/ unless I see something more suitable.
I know there's no objective answer to 'optimal way to learn X' as the answer depends on one's background.
5 replies
S0AndS0
@s0ands0:matrix.org
[m]

Quick question, hopefully, is there a convenient way to get a function's bytes4 selector from within the currently executed function?

Note; I'm aware of an incantation similar to, bytes4(keccak256(bytes("fnName(uint256)"))), which can get the selector for a known string. Which should function for my needs, for now. But I'd prefer to access the bytes4 value of the currently executed function without having to pre-store, and repeat, a given function's signature.

4 replies
Cricricrikets
@Cricricrikets

i've installed truffle,
truffle dashboard --verbose
Truffle Dashboard running at http://localhost:24012
DashboardProvider RPC endpoint running at http://localhost:24012/rpc

but on my Mac i see this error in browser console and a white screen instead of the dashboard

Uncaught Error: missing provider (argument="provider", value=undefined, code=INVALID_ARGUMENT, version=providers/5.6.8)
at t.value (index.ts:261:28)
at t.value (index.ts:273:20)
at t.value (index.ts:277:21)
at new r (web3-provider.ts:127:20)
at state.ts:25:13
at index.tsx:14:5
at index.tsx:14:5

1 reply
what have i forgoten to install or is it a mac os version issue?
i googled it and found out that the same issue was in 2019
Cricricrikets
@Cricricrikets
export class Web3Provider extends JsonRpcProvider {
readonly provider: ExternalProvider;
readonly jsonRpcFetchFunc: JsonRpcFetchFunc;
constructor(provider: ExternalProvider | JsonRpcFetchFunc, network?: Networkish) {
    if (provider == null) {
        logger.throwArgumentError("missing provider", "provider", provider);
    }
this is the place
Cricricrikets
@Cricricrikets
reinstalled everything, same thing
Cricricrikets
@Cricricrikets
installing linux virtual machine .... whole day wasted
aniu
@aniu168_twitter
hello, i have a question about solidity doc 0.8.18. on page 69. there are some sentences as below, could someone explain it, thanks.
// The following does not work; it would need to create a new temporary /
// unnamed array in storage, but storage is "statically" allocated:
// y = memoryArray;
// Similarly, "delete y" is not valid, as assignments to local variables
// referencing storage objects can only be made from existing storage objects.
// It would "reset" the pointer, but there is no sensible location it could␣
˓→point to.
// For more details see the documentation of the "delete" operator.
// delete y;
why below statements are not correct?
y = memoryArray;
delete y;
2 replies
Mike Casebolt
@mikebolt
How are language design decisions made? Is there a formal process?
1 reply
Issue #10 (add macros) has been open for 7 years.
3 replies
Darkness.eth#5338
@Nurmuhammad205_twitter
yo
ehh i am going to start learning solidity
wish me luck guys
Alireza1994x
@Alireza1994x

Hi everyone!
Please check this issue:

xf97/BiAn#3

mricka
@mricka:matrix.org
[m]
When you perform a nested contract call, e.g., ERC20(0x1234...).name(), solidity does a CALL with non-contract ABI calldata. Can anyone point me to why this happens? I expect calldata to be method id + abi encoded args (i.e., 0x6fdde03 for "name()"), but instead it is 0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000006fdde03
2 replies
aniu
@aniu168_twitter
hello, i have a question about metarials below on solidity doc page138. version 0.8.18. Who can explain it?thanks.
If Base2 calls a function of super, it does not simply call this function on one of its base contracts. Rather, it calls
this function on the next base contract in the final inheritance graph, so it will call Base1.destroy() (note that the
final inheritance sequence is – starting with the most derived contract: Final, Base2, Base1, Destructible, owned). The
actual function that is called when using super is not known in the context of the class where it is used, although its
type is known. This is similar for ordinary virtual method lookup.
aniu
@aniu168_twitter
solidity doc should be improved to explain metarials more clear and let more developer understand it without confusion
mricka
@mricka:matrix.org
[m]
@Epict3tus_twitter: Thanks -- I'm still a little lost on this though. When you deploy a contract, the constructor data get appended. When you call an external contract that's already been deployed, what's the extra calldata there for and why isn't it accounted for in the CALLDATASIZE?
RumeelHussain
@RumeelHussain
Hi I want to migrate my Solana Project(Rust) to Ethereum and BNBchain for learning and testing purpose? Is there any tutorials available or guideline can any body share.
0x000000000000000
@0x000000000000000
Why is the gas used when the account balance is 0 when the transfer is executed always the gas used when the account balance is greater than 0
README
@emikobq.matrix.org:matrix.org
[m]
Hello
DerekJarvis
@DerekJarvis
Does anyone know of a library / template in ethereum equivalent to https://github.com/solana-labs/solana-program-library/tree/master/governance ? I'm looking into controlling proxy contract updates based on governance logic in the contract itself.
DerekJarvis
@DerekJarvis
https://docs.openzeppelin.com/contracts/4.x/api/governance seems like some decent starting points, and perhaps could use the Execute function of a vote to update a proxy contract?
cha0sg0d
@cha0sg0d
Hey folks, I made a repo showing a Solidity compiler error based on copying a struct from storage to memory. I'm trying to understand exactly WHY this error is during copying, so if you can explain it to me, please do and I will wr ite up the analysis (with a big thank you to those who helped). Thanks! https://github.com/cha0sg0d/solidity-struct-copy
2 replies
steven
@cxqi_gitlab
how to get erc721 smart contract function of safeTrasnfer hash
steven
@cxqi_gitlab
Hi, I want to get the hash value of safetransfer in the erc721 smart contract standard library. How should I set up my contract? Is it to override the underlying method or is there any way?
1 reply
Didi
@d10r

Hi, question about the Yul optimizer:
https://docs.soliditylang.org/en/v0.8.17/yul.html# states:

there is an experimental implementation of the Solidity compiler that uses Yul as an intermediate language

My understanding is that enabling the Yul Optimizer through the viaIRflag uses this "experimental" implementation.
I would love to use that pipeline in order to avoid "stack too deep" - issues, but only if it's safe to use it in production.
Is it safe to be used in production?

franzihei
@franzihei:matrix.org
[m]
Oh you might have found a piece of outdated docs there! viaIR is considered "production ready" since v0.813 (see release announcement)
cameel
@cameel:matrix.org
[m]
Yeah. It's an outdated bits of docs that should be changed.
Recently we had a PR to fix a similar bit about the abi coder pragma.
I think we may have more of these still scattered around the docs.
Didi
@d10r

Oh you might have found a piece of outdated docs there! viaIR is considered "production ready" since v0.813 (see release announcement)

oh great, thx!

Bleujj1
@Bleujj1

📌 DeFi platforms increased profits amidst FTX collapse

Daily futures trading volume on DeFi platforms reached $5 billion. This is the biggest amount since Terra collapsed in May of this year. Crypto-Upvotes expert review.FTX collapse now is making the Crypto Expect putting a stop to all lost to investors if you are holding FTX kindly submit your prove of holding and wallet address to the live support team to submit your complain

$CAKE $UNI #DeFi #FTX #crypto #cryptonews #cryptocurrency

📰 Read more: https://direct.lc.chat/14756535/

Ardi17
@Ardi00877182_twitter
I have more than 1K GoerliEth
Contact me on Telegram: https://bit.ly/3fZB6BD
^ ランナー▟
@shiftrunstop:matrix.org
[m]
What kind of smart contract would handle rewards for actions on a site?
Bleujj1
@Bleujj1
F smart contract
Black Storm
@blackstorm0514
Hi all, very simple question about Pancakeswap Masterchef.
When I click Harvest on farms, which method is called?
I can't find it. please help me out.
https://github.com/pancakeswap/pancake-farm/tree/master/contracts
prberg
@prberg:matrix.org
[m]

Hi all, sorry for the shameless plug, but I think that many of you will find this useful/ interesting.

I just shipped PRBMath V3, which to my knowledge it's the first Solidity fixed-point math library that makes use of user-defined value types at scale.

https://twitter.com/PaulRBerg/status/1597645509094649856

chriseth
@chriseth:matrix.org
[m]
Nice! I hope you will have to add user defined operators and literal suffixes soon ;)
1 reply
tadhg
@riordant

Hey guys, I'm attempting to use the goto definition feature (introduced in 0.8.13) in coc.nvim. I'm on version 0.8.17. When I try to jump to definition, in any case, I always get [coc.nvim] definition not found.. This is my config:

        "solidity": {
            "command": "/home/riordant/.solc/0.8.17/solc",
            "args": [ "--lsp" ],
            "trace.server": "verbose",
            "rootPatterns": [".git/"],
            "filetypes": ["solidity"]
        }

any ideas?

chriseth
@chriseth:matrix.org
[m]
what is your source code / what are you searching the definition of?
cryptoeq12
@cryptoeq12
A Guide to Upgrading Ethereum in 2022 - Ethereum is amid a multi-year upgrade. This is your guide for the first part of the upgrade and what we can expect soon from Ethereum and the ecosystem. Learn about Ethereum merge, Ethereum blockchain, and more! Read - https://www.cryptoeq.io/research/ethereum-upgrade-guide-2022
^ ランナー▟
@shiftrunstop:matrix.org
[m]

Has anybody used radare2 evm plugin? I'm having trouble installing plugins in general due to a pkg-config error. It can't fun r_core similar issues on github but no solutions that work.

Sorry if this isn't exactly appropriate for here just thought I might ask before making a github issue.

Ardi17
@Ardi00877182_twitter

Hi everyone!

DM me on Telegram if you need SepoliaETH.

Telegram: https://t.me/ardihidayanto

alt

superDev
@UnaiLabrador
Hi
hat
@h4t:matrix.org
[m]
hello