From 9f84f4be3b09eed9d220c32102885c2b4c503f30 Mon Sep 17 00:00:00 2001 From: gghidini Date: Tue, 3 Oct 2017 12:10:34 -0500 Subject: [PATCH] [#2114] Develop simple event-firing Solidity contract --- test/bug-2114/contract/compile-contract.sh | 8 ++++++++ test/bug-2114/contract/volume/out/.gitignore | 3 +++ test/bug-2114/contract/volume/src/contract.sol | 13 +++++++++++++ 3 files changed, 24 insertions(+) create mode 100755 test/bug-2114/contract/compile-contract.sh create mode 100644 test/bug-2114/contract/volume/out/.gitignore create mode 100644 test/bug-2114/contract/volume/src/contract.sol diff --git a/test/bug-2114/contract/compile-contract.sh b/test/bug-2114/contract/compile-contract.sh new file mode 100755 index 000000000000..4c9a10905104 --- /dev/null +++ b/test/bug-2114/contract/compile-contract.sh @@ -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 diff --git a/test/bug-2114/contract/volume/out/.gitignore b/test/bug-2114/contract/volume/out/.gitignore new file mode 100644 index 000000000000..b114082f6e79 --- /dev/null +++ b/test/bug-2114/contract/volume/out/.gitignore @@ -0,0 +1,3 @@ +/MetaMaskBug2114_meta.json +/MetaMaskBug2114.abi +/MetaMaskBug2114.bin diff --git a/test/bug-2114/contract/volume/src/contract.sol b/test/bug-2114/contract/volume/src/contract.sol new file mode 100644 index 000000000000..35ff35b5847e --- /dev/null +++ b/test/bug-2114/contract/volume/src/contract.sol @@ -0,0 +1,13 @@ +pragma solidity 0.4.13; + +/// @title Terra-Fi directory +/// @author Giacomo Ghidini +contract MetaMaskBug2114 { + event LogEvent( + address indexed sender + ); + /// @notice Fire event + function fireEvent() { + LogEvent(msg.sender); + } +}