Linked Questions
10 questions linked to/from What's the difference between 'address' and 'address payable'?
2
votes
3
answers
505
views
How to fix "Type address is not implicitly convertible to expected type address payable"? [duplicate]
Here's the function:
function withdrawMoney() public {
address payable to = msg.sender;
to.transfer(this.getBalance());
}
And the error:
TypeError: Type address is not ...
1
vote
1
answer
92
views
Someone Please Explain this "The concept of payable and non-payable addresses only exists at compile time not after the contract is compiled" [duplicate]
Actually I was reading this Answer https://ethereum.stackexchange.com/a/64109/55286 . And this person says The concept of payable and non-payable addresses only exists in the Solidity type system at ...
7
votes
2
answers
26k
views
TypeError: Type address is not implicitly convertible to expected type address payable
I'm taking the course from lynda.com "Ethereum: Building Blockchain Decentralized Apps (DApps)" but there's an issue with the contract we're given, and it won't compile:
pragma solidity ^0.5....
2
votes
2
answers
5k
views
ParserError: Expected primary expression - address payable - payable()
I'm trying to get myself familiarized with ethereum. So I was going through a repo, and tried to rum the code :
function transferFundOnResolve(uint cid) private {
// Could also be used: ...
3
votes
2
answers
3k
views
Convert address to uint160
https://solidity.readthedocs.io/en/develop/abi-spec.html
"address: equivalent to uint160, except for the assumed interpretation and language typing. For computing the function selector, address ...
0
votes
1
answer
965
views
smart contract withdraw function asks payable amount
my withdraw function asks for payable amount in Etherscan before invoking it, not sure what's the reason?
function withdraw() public payable onlyOwner {
(bool os, ) = payable(owner())....
1
vote
1
answer
645
views
Solidity Error:Running Out of Gas / selfdestruct problem
I've been going through 'Building Cryptocurrency and its ICO' by DappUniversity.
I know many have questioned this issue and I've been through all the post but couldn't resolve it.
The problem is self-...
0
votes
1
answer
164
views
Address Payable and New Contracts
The following compiles in 0.4.26, but not 0.5.0. The error is "Type contract CustList is not implicitly convertible to expected type address." I figure it's something with address payable, but I have ...
0
votes
1
answer
116
views
address payable error [duplicate]
please i'm having this issue while trying to deploy my smart contract, please can anyone explain this error for me and how i can solve it
Type address is not implicitly convertible to expected type ...
1
vote
1
answer
15
views
Error: Address must be type "payable"
The code is from freecodecamp.org, and a solidity tutorial from Youtube and theirs worked, but unfortunately mine throws this error:
Address must be type "payable"
// SPDX-License-...