Skip to content

Commit

Permalink
[MetaMask#2114] Develop simple event-firing Solidity contract
Browse files Browse the repository at this point in the history
  • Loading branch information
gghidini committed Oct 3, 2017
1 parent 94068ef commit 9f84f4b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/bug-2114/contract/compile-contract.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /usr/bin/env bash

docker run -it --rm --name metamask-bug2114-contract-compiler \
-v ${PWD}/volume:/root \
ethereum/solc:0.4.13 \
solc --output-dir /root/out \
--bin --abi --metadata --overwrite \
/root/src/contract.sol
3 changes: 3 additions & 0 deletions test/bug-2114/contract/volume/out/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/MetaMaskBug2114_meta.json
/MetaMaskBug2114.abi
/MetaMaskBug2114.bin
13 changes: 13 additions & 0 deletions test/bug-2114/contract/volume/src/contract.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pragma solidity 0.4.13;

/// @title Terra-Fi directory
/// @author Giacomo Ghidini <[email protected]>
contract MetaMaskBug2114 {
event LogEvent(
address indexed sender
);
/// @notice Fire event
function fireEvent() {
LogEvent(msg.sender);
}
}

0 comments on commit 9f84f4b

Please sign in to comment.