Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
20 lines
606 B
JavaScript
20 lines
606 B
JavaScript
const { BN } = require('@openzeppelin/test-helpers');
|
|
|
|
const { shouldBehaveLikeERC20Burnable } = require('./ERC20Burnable.behavior');
|
|
const ERC20BurnableMock = artifacts.require('ERC20BurnableMock');
|
|
|
|
contract('ERC20Burnable', function (accounts) {
|
|
const [ owner, ...otherAccounts ] = accounts;
|
|
|
|
const initialBalance = new BN(1000);
|
|
|
|
const name = 'My Token';
|
|
const symbol = 'MTKN';
|
|
|
|
beforeEach(async function () {
|
|
this.token = await ERC20BurnableMock.new(name, symbol, owner, initialBalance, { from: owner });
|
|
});
|
|
|
|
shouldBehaveLikeERC20Burnable(owner, initialBalance, otherAccounts);
|
|
});
|