Skip to content

Instantly share code, notes, and snippets.

View djaramillo021's full-sized avatar

David Jaramillo Cañas djaramillo021

  • Chile
View GitHub Profile
<div xk-section-styles="xk-component xk-section-base ">
hola
</div>
body {
background-color: red;
}
dasdsa
pragma solidity ^0.4.2;
contract Validation{
bytes32 private sha3Base;
bytes20 private ripemd160Base;
function getCode(address _addr) constant returns (bytes o_code,uint o_code_size) {
assembly {
// retrieve the size of the code, this needs assembly
let size := extcodesize(_addr)
o_code_size := size
pragma solidity ^0.4.2;
contract B {
uint d;
}
contract ObjectFactory {
event ReturnAddress(address indexed _address);
pragma solidity ^0.4.2;
contract A {
address d;
}
contract ObjectFactory {
event ReturnAddress(address indexed _address);
function createObject() returns (address ) {
contract Bank{
/*Contract that stores user balances. This is the vulnerable contract. This contract contains
the basic actions necessary to interact with its users, such as: get balance, add to balance,
and withdraw balance */
mapping(address=>uint) userBalances;/*mapping is a variable
type that saves the relation between the user and the amount contributed to
this contract. An address (account) is a unique indentifier in the blockchain*/
function getUserBalance(address user) constant returns(uint) {