fabric-samples/token-erc-20/chaincode-go
Simon Stone 365172ddb3
Stop ERC-20 transfer bug when to/from accounts are the same (#425)
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 15:07:06 -05:00
..
chaincode Stop ERC-20 transfer bug when to/from accounts are the same (#425) 2021-02-24 15:07:06 -05:00
go.mod Update Go Modules 2021-02-11 18:11:17 -05:00
go.sum Update Go Modules 2021-02-11 18:11:17 -05:00
token_erc_20.go Rename token-account-based Directory to token-erc-20 2020-11-21 11:08:18 -05:00