fabric-samples/token-erc-20/chaincode-javascript
Simon Stone ef8f1d63d1 Stop ERC-20 transfer bug when to/from accounts are the same
Using the ERC-20 sample, you can submit a transfer to and from
the same account. Because the code doesn't handle this, it ends
up minting new tokens into that account.

The correct behaviour is not specified by the ERC-20 specification,
although the OpenZeppelin implementation seems to permit it.

IMO we should just block it with an error because I can't see a use
case for allowing it and it is most likely a user error.

Signed-off-by: Simon Stone <sstone1@uk.ibm.com>
2021-02-24 14:16:35 +00:00
..
lib Stop ERC-20 transfer bug when to/from accounts are the same 2021-02-24 14:16:35 +00:00
test Stop ERC-20 transfer bug when to/from accounts are the same 2021-02-24 14:16:35 +00:00
.editorconfig Rename token-account-based Directory to token-erc-20 2020-11-21 11:08:18 -05:00
.eslintignore Rename token-account-based Directory to token-erc-20 2020-11-21 11:08:18 -05:00
.eslintrc.js Rename token-account-based Directory to token-erc-20 2020-11-21 11:08:18 -05:00
.gitignore Rename token-account-based Directory to token-erc-20 2020-11-21 11:08:18 -05:00
index.js Rename token-account-based Directory to token-erc-20 2020-11-21 11:08:18 -05:00
package.json Rename token-account-based Directory to token-erc-20 2020-11-21 11:08:18 -05:00