hello, does anyone know if it is possible to extract ETH balance from a third party with a signature?
Mar 30, 2022, 1:03 PM
what do you mean? with a signature, you can directly submit transaction
Mar 30, 2022, 1:06 PM
In solidity?
Either that or a payable function
If you want to send plain ether, fallback is necessary
Mar 30, 2022, 1:52 PM
Ohk, and i assume for normal token like any erc20 token, there is nothing stopping someone from sending tokens to a smart contract.
No receive or payable function required in that case , correct ?
No receive or payable function required in that case , correct ?
Mar 30, 2022, 1:53 PM
Yep, because balance change is registered in token contract only.
Mar 30, 2022, 1:54 PM
Correct.
Thanks mate👍
Thanks mate👍
Mar 30, 2022, 1:55 PM
it probably means tx will logically fail
Mar 30, 2022, 1:57 PM
I have connected to Metamask ,Rinkeby Test Network
Mar 30, 2022, 2:05 PM
is the code which is wrong
Mar 30, 2022, 2:06 PM
please check your contract carefully, there must be logical failure
are you trying to deploy upgradeable contracts in remix?
Mar 30, 2022, 2:07 PM
well yes
Mar 30, 2022, 2:09 PM
I have deployed Governance.sol , Lottery.sol and Randomness.sol
Mar 30, 2022, 2:11 PM
I dont think so, I recommend hardhat for upgradeable contracts
'cause we need extra helpers like hardhat-upgrades or hardhat-deploy
Mar 30, 2022, 2:13 PM
Ok , https://blog.chain.link/how-to-build-a-blockchain-lottery/
the same code in Remix.
https://remix.ethereum.org/#version=soljson-v0.6.6+commit.6c089d02.js&optimize=false&gist=1bb62664cfad04de04d9dc5d059eb519&evmVersion=null&runs=200
the same code in Remix.
https://remix.ethereum.org/#version=soljson-v0.6.6+commit.6c089d02.js&optimize=false&gist=1bb62664cfad04de04d9dc5d059eb519&evmVersion=null&runs=200
Mar 30, 2022, 2:15 PM
do you have any in-depth tutorial or guide
?
Mar 30, 2022, 2:16 PM
we can find bunch of them in google
https://docs.openzeppelin.com/contracts/4.x/upgradeable
Mar 30, 2022, 2:20 PM
out of interest which one do you think is best option? UUPS or transparent proxy?
Mar 30, 2022, 2:27 PM
transparent proxy like openzepplin upgradeable
Mar 30, 2022, 2:29 PM