This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Django settings for rentbeta_backend project. | |
Generated by 'django-admin startproject' using Django 4.2.1. | |
For more information on this file, see | |
https://docs.djangoproject.com/en/4.2/topics/settings/ | |
For the full list of settings and their values, see | |
https://docs.djangoproject.com/en/4.2/ref/settings/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
did:3:bafyreiagu3hhwer7k6km2m43wtehxdij27rqdlxug2kxl2oh4rdoysq2t4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.21 <0.6.0; | |
//library to safely convert unpayable addresses to payables | |
//Especially for the checkValue modifier that is not loading | |
//the transfer member because the adress isnt payable | |
// library address_make_payable { | |
// function make_payable(address x) internal pure returns (address payable) { | |
// return address(uint160(x)); | |
// } | |
// } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity >=0.4.21 <0.6.0; | |
//library to safely convert unpayable addresses to payables | |
//Especially for the checkValue modifier that is not loading | |
//the transfer member because the adress isnt payable | |
library address_make_payable { | |
function make_payable(address x) internal pure returns (address payable) { | |
return address(uint160(x)); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This exercise has been updated to use Solidity version 0.5 | |
Breaking changes from 0.4 to 0.5 can be found here: | |
https://solidity.readthedocs.io/en/v0.5.0/050-breaking-changes.html | |
*/ | |
pragma solidity >=0.4.24; | |
contract SimpleBank { |