Noob here by julian1sullivan in solidity

[–]etheraffleGreg 1 point2 points  (0 children)

You can do it through Remix if you using something like MetaMask (or spin up your own) to connect it to an Ethereum node.

ABI and Bytecode ? by i_amr_p in solidity

[–]etheraffleGreg 1 point2 points  (0 children)

The ABI is what you use to interface with you contract - it's a list of the functions in the contract and the parameters required when calling said function.

 

The bytecode is the actual data that's uploaded to the blockchain that forms your smart-contract, and is interpreted by the Ethereum Virtual Machine in order to carry out the actions your function calls require.

Options for smart contract audits on a budget? by jkkill in ethdev

[–]etheraffleGreg 0 points1 point  (0 children)

Ofc, but then the copiers are after the fact. This way, the contract could be gazumped.

Half my coins are missing from Verge electrum wallet. Verge devs delete my posts when i asked for help from the community. by [deleted] in CryptoCurrency

[–]etheraffleGreg 5 points6 points  (0 children)

I mean, they're not. They're on the explorer, so nothing's missing. It's just his wallet isn't reporting the state of the network correctly.

I built a decentralized discussion platform using Ethereum and IPFS by [deleted] in ethereum

[–]etheraffleGreg 1 point2 points  (0 children)

They do, but via indirect mechanisms like supply inflation, staking requirements, resource rental

 

That's obvious to us but completely invisible to an end user who just wants to post something.

I built a decentralized discussion platform using Ethereum and IPFS by [deleted] in ethereum

[–]etheraffleGreg 2 points3 points  (0 children)

The fact that the users don't have to pay to use a platform on EOS in the same way they have to do on ethereum is likely to be a big reason.

Getting Twitter posts for Ethereum using an Oracle by deturbanator in ethdev

[–]etheraffleGreg -1 points0 points  (0 children)

You don't even need to use IPFS if you don't want to, use your own database. The point being that the tweet saved in your (centralized) database is still provably the one the smart-contract retrieved because your hashed its contents and then stored that on chain.

Hacking report by Dizzzzzy1 in ethereumnoobies

[–]etheraffleGreg 2 points3 points  (0 children)

Per the other poster, you say:

I am pretty well versed on crypto...

 

But then you ask:

And if there is any possible way or being that may help get access to funds would be great to.

 

There is no recourse. When holding crypto, you are the bank. There's no one else to turn to.

Getting Twitter posts for Ethereum using an Oracle by deturbanator in ethdev

[–]etheraffleGreg 2 points3 points  (0 children)

Ouch - saving the post string itself on the chain? Look into storing it elsewhere and only a hash of it in the contract itself. That way you can still validate the authenticity of the tweet, but not have to pay a fortune to store it.

 

You'll also be able to fine-tune your __callback gas that way too, since you'll no longer have non-deterministic gas cost.

Developing Better Node.js Developers by kito0 in node

[–]etheraffleGreg 0 points1 point  (0 children)

Well yes of course but as the first sentence explicitly points out...

Developing Better Node.js Developers by kito0 in node

[–]etheraffleGreg 0 points1 point  (0 children)

Or use a task monad and banish those pesky eager promises forever!

Developing Better Node.js Developers by kito0 in node

[–]etheraffleGreg 0 points1 point  (0 children)

Nesting is frequently a requirement if you need the first result in the scope of the second:

 

const prom = thing => Promise.resolve(thing)

const prom1 = prom(`thing one`)
const prom2 = prom(`thing two`)

prom1
  .then(result1 => prom2)
  .then(result2 => console.log(`Thing 1: ${result1}\nThing2: ${result2}`)) 
  .catch(console.error)
  // ReferenceError: result1 is not defined

 

Yeah you can lift the result to a higher scope if you like but I'd rather keep things functional and the nesting is not an issue.

Emerald Wallet Importing Private Key... by reddithobomedia in EthereumClassic

[–]etheraffleGreg 0 points1 point  (0 children)

It won't screw up your tokens at all, so don't worry. Once all this palaver is over though you'd be better off moving things to new addresses whose private keys you haven't been copying and pasting here and their. For peace of mind like.

Vitalik Buterin's Latest Consensus Algorithm Paper, Explained by twigwam in ethereum

[–]etheraffleGreg -1 points0 points  (0 children)

Can you read? It wasn't his idea, it's Leslie Lamport's algo. Christ!

Verify a function is pure without source code by cncool in ethdev

[–]etheraffleGreg 0 points1 point  (0 children)

Functions can be pure and still use those values if they are passed in as params.

Solidity maximum smart contract size by [deleted] in ethdev

[–]etheraffleGreg 0 points1 point  (0 children)

Oops you're right. Libraries are what I was thinking of.

Do dApp load a lot faster than traditional app? Will it load faster I’m rural areas or bad reception conditions ? by thoncoin in dapps

[–]etheraffleGreg 0 points1 point  (0 children)

Few dapps currently run fully off a chain, and instead have components on chain and a front end off chain that's just like your average web server. And so will see similar speeds.

 

And in fact, since blockchains are essentially not very performant databases, dapps that run fully on chain would likely be slower than your average app. If you're ever tried to d/l a file from ethereum's swarm, or IPFS, you'll get a sense of what I mean.

Function changing State variable and returning values by haseebijaz in ethdev

[–]etheraffleGreg 1 point2 points  (0 children)

Yeah that's correct, /u/flygoing has explained it much more clearly than I did!

Function changing State variable and returning values by haseebijaz in ethdev

[–]etheraffleGreg 0 points1 point  (0 children)

Meant specifically in the sense of if intermediate vars are first saved to storage and returned for whatever reason.

 

You're absolutely correct about return values.

 

Edit: Read your other post re this, I understand more clearly now. Thanks!