Skip to content

Commit ab475e6

Browse files
authored
Merge pull request #326 from windingtree/revert-315-remove-erc827
Revert "Remove ERC827 functionality and tests"
2 parents 6366042 + 00b808d commit ab475e6

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

contracts/LifToken.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pragma solidity ^0.4.18;
22

3+
import "zeppelin-solidity/contracts/token/ERC827/ERC827Token.sol";
34
import "zeppelin-solidity/contracts/token/ERC20/StandardToken.sol";
45
import "zeppelin-solidity/contracts/token/ERC20/MintableToken.sol";
56
import "zeppelin-solidity/contracts/token/ERC20/PausableToken.sol";
@@ -12,7 +13,7 @@ import "zeppelin-solidity/contracts/token/ERC20/PausableToken.sol";
1213
on transfer.
1314
Uses OpenZeppelin StandardToken, ERC827Token, MintableToken and PausableToken.
1415
*/
15-
contract LifToken is StandardToken, MintableToken, PausableToken {
16+
contract LifToken is StandardToken, ERC827Token, MintableToken, PausableToken {
1617
// Token Name
1718
string public constant NAME = "Líf";
1819

test/LifToken.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ contract('LifToken', function (accounts) {
106106
});
107107

108108
_.forEach([0, 1], function (tokens) {
109-
it.skip('should return correct balances after transfer ERC827 with ' + tokens + ' tokens and show the event on receiver contract', async function () {
109+
it('should return correct balances after transfer ERC827 with ' + tokens + ' tokens and show the event on receiver contract', async function () {
110110
let message = await Message.new();
111111
help.abiDecoder.addABI(Message._json.abi);
112112

@@ -135,7 +135,7 @@ contract('LifToken', function (accounts) {
135135
});
136136

137137
_.forEach([0, 1], function (tokens) {
138-
it.skip('should return correct balances after transferFrom ERC827 with ' + tokens + ' tokens and show the event on receiver contract', async function () {
138+
it('should return correct balances after transferFrom ERC827 with ' + tokens + ' tokens and show the event on receiver contract', async function () {
139139
let message = await Message.new();
140140
help.abiDecoder.addABI(Message._json.abi);
141141

@@ -160,7 +160,7 @@ contract('LifToken', function (accounts) {
160160
});
161161
});
162162

163-
it.skip('should return correct balances after approve and show the event on receiver contract', async function () {
163+
it('should return correct balances after approve and show the event on receiver contract', async function () {
164164
let message = await Message.new();
165165
help.abiDecoder.addABI(Message._json.abi);
166166

@@ -180,7 +180,7 @@ contract('LifToken', function (accounts) {
180180
await help.checkToken(token, accounts, 125, [40, 30, 20, 10, 0]);
181181
});
182182

183-
it.skip('should fail on approve ERC827 when spender is the same LifToken contract', async function () {
183+
it('should fail on approve ERC827 when spender is the same LifToken contract', async function () {
184184
let message = await Message.new();
185185
let data = message.contract.showMessage.getData(web3.toHex(123456), 666, 'Transfer Done');
186186

@@ -196,7 +196,7 @@ contract('LifToken', function (accounts) {
196196
}
197197
});
198198

199-
it.skip('should fail inside approve ERC827', async function () {
199+
it('should fail inside approve ERC827', async function () {
200200
let message = await Message.new();
201201
help.abiDecoder.addABI(Message._json.abi);
202202

@@ -220,7 +220,7 @@ contract('LifToken', function (accounts) {
220220
await help.checkToken(token, accounts, 125, [40, 30, 20, 10, 0]);
221221
});
222222

223-
it.skip('should fail inside transfer ERC827', async function () {
223+
it('should fail inside transfer ERC827', async function () {
224224
let message = await Message.new();
225225
help.abiDecoder.addABI(Message._json.abi);
226226

@@ -244,7 +244,7 @@ contract('LifToken', function (accounts) {
244244
await help.checkToken(token, accounts, 125, [40, 30, 20, 10, 0]);
245245
});
246246

247-
it.skip('should fail inside transferFrom ERC827', async function () {
247+
it('should fail inside transferFrom ERC827', async function () {
248248
let message = await Message.new();
249249
help.abiDecoder.addABI(Message._json.abi);
250250

@@ -272,7 +272,7 @@ contract('LifToken', function (accounts) {
272272
await help.checkToken(token, accounts, 125, [40, 30, 20, 10, 0]);
273273
});
274274

275-
it.skip('should fail transfer ERC827 when using LifToken contract address as receiver', async function () {
275+
it('should fail transfer ERC827 when using LifToken contract address as receiver', async function () {
276276
let message = await Message.new();
277277
let data = message.contract.showMessage.getData(web3.toHex(123456), 666, 'Transfer Done');
278278

@@ -290,7 +290,7 @@ contract('LifToken', function (accounts) {
290290
await help.checkToken(token, accounts, 125, [40, 30, 20, 10, 0]);
291291
});
292292

293-
it.skip('should fail transferFrom ERC827 when using LifToken contract address as receiver', async function () {
293+
it('should fail transferFrom ERC827 when using LifToken contract address as receiver', async function () {
294294
let message = await Message.new();
295295
await token.approve(accounts[1], help.lif2LifWei(1), { from: accounts[3] });
296296
let data = message.contract.showMessage.getData(web3.toHex(123456), 666, 'Transfer Done');

0 commit comments

Comments
 (0)