New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tokenfoundry/token-contracts

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tokenfoundry/token-contracts - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

contracts/EnforceProtocolToken.sol

2

package.json
{
"name": "@tokenfoundry/token-contracts",
"version": "0.0.1",
"version": "0.0.2",
"description": "Code for the new token foundry token using zeppeling ERC20 implementation.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/tokenfoundry/token-contracts.git",

@@ -34,5 +34,10 @@ import expectThrow from './helpers/expectThrow';

it('should not transfer from to account because is locked', async () => {
await token.approve(accounts[1], 30);
await expectThrow(token.transferFrom(owner, accounts[2], 30, {from: accounts[1]}));
});
it('should unlock transfer function', async () => {
await token.Release();
await token.release();

@@ -53,4 +58,12 @@ let locked = await token.locked.call();

it('should transfer from to account', async () => {
await token.transferFrom(owner, accounts[2], 30, {from: accounts[1]});
let balanceAccount1 = await token.balanceOf.call(accounts[2]);
assert.equal(balanceAccount1.valueOf(), 30, 'should be 30');
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc