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
Kimiro
@kimiro34
Here is my setting.
    var input = {
      language: "Solidity",
      settings: {
        evmVersion: "istanbul",
        libraries: {},
        optimizer: {
          enabled: false,
          runs: 200,
        },
        remappings: [],
      },
      sources: {
        "contracts/X2.sol": {
          keccak256:
            "0xce0fdd5edf018d11acf1b78c568bbc900cdec244bd35a41509cd34d20fa8d9c1",
          urls: [
            "bzz-raw://18a9cdadc2aab8996c84715151968e678fb99a17c65a414b3b751c200e3ac1f2",
            "dweb:/ipfs/QmNuf4gscWZbshwLVDsdP7M7R5vy6Hix3HtTYs3offpLxK",
          ],
        },
      },
    };
And got this error
{
  errors: [
    {
      component: 'general',
      formattedMessage: 'Cannot import url ("bzz-raw://18a9cdadc2aab8996c84715151968e678fb99a17c65a414b3b751c200e3ac1f2"): File import callback not supported',
      message: 'Cannot import url ("bzz-raw://18a9cdadc2aab8996c84715151968e678fb99a17c65a414b3b751c200e3ac1f2"): File import callback not supported',
      severity: 'error',
      type: 'IOError'
    },
    {
      component: 'general',
      formattedMessage: 'Cannot import url ("dweb:/ipfs/QmNuf4gscWZbshwLVDsdP7M7R5vy6Hix3HtTYs3offpLxK"): File import callback not supported',
      message: 'Cannot import url ("dweb:/ipfs/QmNuf4gscWZbshwLVDsdP7M7R5vy6Hix3HtTYs3offpLxK"): File import callback not supported',
      severity: 'error',
      type: 'IOError'
    }
  ],
  sources: {}
}
Oh, sorrrrrrrrry, @cameel. It's a already midnight. I will keep trying by myself.
2 replies
cameel
@cameel:matrix.org
[m]
You need to remove the stuff inside contracts/X2.sol key and add a content key. Then put the file content under that key.
Also make sure to check that the keccak256 hash matches the hash of the code you're putting in there (make sure to preserve the file exactly - same line endings, indentation, etc.).
Kimiro
@kimiro34
I tried and gave me this result
{ sources: { 'contracts/X2.sol': { id: 0 } } }
I think I have no right to spare your time any more. So please leave the rest of this to me. I will resolve it by myself.
Kimiro
@kimiro34
I am really, really sorry for keep asking for my indigence of knowledge. So Please......... have a good night....
Kimiro
@kimiro34
Hiiiiiii, @cameel, I finally able to make the EXACTLY SAME bytecode!!! Without your patient and professional guide, it was impossible. Deep thanks to your effort and patience on me and my project.
And also thanks to entire solc-js develop team with their effort on a such a valuable project! :)
Angela
@DuSKV9pLjlKENQH_twitter
这是什么
SafeFantom
@SafeFantom_twitter
Hi I need help
Angela
@DuSKV9pLjlKENQH_twitter
hi
What kind of help do you need
SafeFantom
@SafeFantom_twitter
I made a coin on bsc net, but cant pull liquidity now
Angela
@DuSKV9pLjlKENQH_twitter
Have you established a public chain
SafeFantom
@SafeFantom_twitter
I don't know
i just copy pasted the code
from a working one
and changed the liquidity fee etc
Angela
@DuSKV9pLjlKENQH_twitter
That is wrong
SafeFantom
@SafeFantom_twitter
usually worked with other codes, but this one was more profound i guess
can you take a look?
Angela
@DuSKV9pLjlKENQH_twitter
You are not built on the public chain
SafeFantom
@SafeFantom_twitter
maybe i can change a value in the write contract column
can i fix that?
Angela
@DuSKV9pLjlKENQH_twitter
yes
SafeFantom
@SafeFantom_twitter
thankfully
Angela
@DuSKV9pLjlKENQH_twitter
@DuSKV9pLjlKENQH_twitter trust yourself
SafeFantom
@SafeFantom_twitter
what do i have to do
trust myself?
Angela
@DuSKV9pLjlKENQH_twitter
image.png
I only saw this
SafeFantom
@SafeFantom_twitter
yes
can you check the contract
Angela
@DuSKV9pLjlKENQH_twitter
Does DeFiETH mining?
SafeFantom
@SafeFantom_twitter
我的中文不好
I don't know
It has a rebase function
do you have wechat
SafeFantom
@SafeFantom_twitter
i really need help, got 5 bnb stuck
SafeFantom
@SafeFantom_twitter
okay i kind of know the problem, there's a txlimit, but i dont know how to raise it
SafeFantom
@SafeFantom_twitter
i put in 5bnb as liquidity, but can only take out 2% at a time (or 0.1bnb for the first transaction)
Angela
@DuSKV9pLjlKENQH_twitter
我有WhatsApp
+16572251645
Marin Ivanov
@metala:matrix.org
[m]
Is there publicly deployed smart contracts, where I can eth_call a method and get the current block number? It's for testing an Ethereum client's historical state.
I don't trust that eth_blockNumber gives me the correct result and I want to access the current block number through eth_call.
Marin Ivanov
@metala:matrix.org
[m]
Nevermind. Luckily I have found that Compound Comptroller has getBlockNumber() method that it does exactly what I want.
ilijapet
@ilijapet
I have very strange behavior of Solidity. Here is simplified version of contract: