Skip to content

Instantly share code, notes, and snippets.

View KapsonLabs's full-sized avatar
🎯
Focusing

Katongole Kapson KapsonLabs

🎯
Focusing
View GitHub Profile
"""
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/
did:3:bafyreiagu3hhwer7k6km2m43wtehxdij27rqdlxug2kxl2oh4rdoysq2t4
@KapsonLabs
KapsonLabs / gist:b80bc07f106b19e43e0fc7190fc9ca02
Created April 12, 2019 08:09
Supply Chain Exercise(Second Submission)
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));
// }
// }
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 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 {