Skip to content

Instantly share code, notes, and snippets.

@Shashank-In
Last active August 31, 2022 06:40
Show Gist options
  • Save Shashank-In/f594654fd12ef2fe8b5c6d9ca8cccc43 to your computer and use it in GitHub Desktop.
Save Shashank-In/f594654fd12ef2fe8b5c6d9ca8cccc43 to your computer and use it in GitHub Desktop.
function transferFrom(address _from, address _to, uint256 _Allvalue) public {
var _allowances = allowances[_from][msg.sender];
if (_allowances < _value) {
revert();
}
allowances[_from][msg.sender] = _allowances - _value;
transferAllTokens(_from, _to, _value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment