qkdxorjs1002 / dapp_etherotto

이더리움 스마트계약
MIT License
0 stars 0 forks source link

복권 구매(자동 포함) 기능 구현 #1

Closed qkdxorjs1002 closed 3 years ago

qkdxorjs1002 commented 3 years ago

https://github.com/qkdxorjs1002/dapp_etherotto/blob/a10e2ea91d05a7f328157d69ac7099c175c73f60/contract/Etherotto.sol#L115-L127

자동 복권

수동 복권

1부터 45까지 범위의 랜덤 정수 생성은 아래 function 사용 https://github.com/qkdxorjs1002/dapp_etherotto/blob/eb2d790c00c9ab4dda797e71d92d47bf0ea32788/contract/Etherotto.sol#L157-L159