강의

멘토링

커뮤니티

Inflearn Community Q&A

successlife2172050's profile image
successlife2172050

asked

Ethereum in Practice! Lottery Dapp Development for Beginners

Lottery Domain and Queue Design

address payable error

Written on

·

355

0

I am getting the error in solidity 0.8.7
 
 
 
 
Ethereumdapp

Answer 1

0

try:
b.bettor = payable(msg.sender);

Error lottery_smart_contract/contracts/Lottery.sol: ParsedContract.sol:55:20: ParserError: Expected primary expression.

b.bettor = payable(msg.sender);

^-----^

Compilation failed. See above.

Truffle v5.0.2 (core: 5.0.2)

Node v12.22.9

해결하셨나요? 저도 이문제 때문에 한참 찾고있습니다만 모르겠네요 ㅠ

successlife2172050's profile image
successlife2172050

asked

Ask a question