Skip to content

Commit 8aac324

Browse files
authored
Merge pull request #394 from crytic/nisedo-patch-3
Fix typo
2 parents 263c8d7 + eabe398 commit 8aac324

File tree

1 file changed

+1
-1
lines changed
  • not-so-smart-contracts/ton/forward_ton_without_gas_check

1 file changed

+1
-1
lines changed

not-so-smart-contracts/ton/forward_ton_without_gas_check/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ If a contract lacks such a gas check then users can specify a higher forward TON
66

77
## Example
88

9-
The following simplified code highlights the lack of gas check. The following contract implements a `withdraw` operation that allows users to specify a forward TON amount to and forward payload to send with the Jettons. However, this contract does not chekc if used included enough TON with the `withdraw` message to cover for the `withdraw` message transaction, jetton transfer gas fee, and forward TON amount. This allows users to drain the TON balance of the smart contract.
9+
The following simplified code highlights the lack of a gas check. The contract implements a `withdraw` operation that allows users to specify a forward TON amount and a forward payload to send with the Jettons. However, the contract does not check if the user included enough TON with the `withdraw` message to cover the `withdraw` message transaction, the Jetton transfer gas fee, and the forward TON amount. This allows users to drain the TON balance of the smart contract.
1010

1111
```FunC
1212
#include "imports/stdlib.fc";

0 commit comments

Comments
 (0)