forked from AmazingAng/WTF-Solidity
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/AmazingAng/WTF-Solidity
- Loading branch information
Showing
46 changed files
with
538 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Bug report (程序Bug报告) | ||
title: "[Bug] [Class (章节)] Title(标题)" | ||
description: Problems and issues with code of WTF-Solidity (报告WTF-Solidity中的程序Bug) | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Please make sure what you are reporting is indeed a bug with reproducible steps(请确保您所报告的是一个具有可重现步骤的错误), if you want to ask questions | ||
or share ideas, you can head to our (如果你是想问一个问题或者分享一个主意,你可以通过以下方式) | ||
[Discussions](https://github.com/AmazingAng/WTF-Solidity/discussions) tab, you can also | ||
[join our discord](https://discord.gg/5akcruXrsk) | ||
- type: textarea | ||
attributes: | ||
label: Details (细节) | ||
description: Describe what happened.(描述一下发生了什么) | ||
placeholder: > | ||
Please provide the context in which the problem occurred and explain what happened(请提供问题发生的背景并解释发生的情况) | ||
validations: | ||
required: true | ||
|
||
|
||
- type: textarea | ||
attributes: | ||
label: Environment (环境) | ||
description: Tell us about your environment(告诉我们你的环境信息) | ||
placeholder: > | ||
Tell us what you're using it: Hardhat, Remix, etc. (告诉我们你使用的环境:Hardhat,Remix等等。) | ||
- type: checkboxes | ||
attributes: | ||
label: Are you willing to submit PR?(你愿意提交PR吗?) | ||
description: > | ||
This is absolutely not required, but we are happy to guide you in the contribution process | ||
especially if you already have a good understanding of how to implement the fix. | ||
(这不是必须的,但是我们很高兴您能够提交PR) | ||
options: | ||
- label: Yes I am willing to submit a PR!(是的我愿意) | ||
|
||
|
||
|
||
- type: markdown | ||
attributes: | ||
value: "Thanks for completing our form!(感谢填写表单!)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question or get support(提个问题或者获得支持) | ||
url: https://github.com/AmazingAng/WTF-Solidity/discussions | ||
about: Ask a question or request support for using WTF-Solidity (在使用WTF-Solidity时,遇到的问题或者需要获得帮助) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Typo report(勘误报告) | ||
description: Report a typo in the WTF-Solidity(报告WTF-Solidity中的勘误) | ||
title: "[Doc][Module Name(模块)] Title(标题)" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
For better global communication, Please write in English. | ||
If you feel the description in English is not clear, then you can use Chinese, thanks! | ||
(为了更好的全球化的交流,请使用英文,如果觉得用英文无法清楚描述,可以使用中文) | ||
- type: textarea | ||
attributes: | ||
label: Details(细节) | ||
description: A short description what your find in our document.(简短的描述一下在文档中发现了什么错误) | ||
|
||
|
||
- type: checkboxes | ||
attributes: | ||
label: Are you willing to submit a PR?(你愿意提交PR吗?) | ||
description: > | ||
This is absolutely not required, but we are happy to guide you in the contribution process | ||
especially if you already have a good understanding of how to implement the fix. | ||
(这不是必须的,但是我们很高兴您能够提交PR) | ||
options: | ||
- label: Yes I am willing to submit a PR!(是的我愿意) | ||
|
||
- type: markdown | ||
attributes: | ||
value: "Thanks for completing our form!(感谢填写表单!)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
name: Feature request(对此项目提出一个意见) | ||
description: Suggest an idea for this project(对此项目提出一个意见) | ||
title: "[Feature][Module Name(模块名称)] Title(标题)" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
For better global communication, Please write in English. | ||
If you feel the description in English is not clear, then you can use Chinese, thanks! | ||
(为了更好的全球化的交流,请使用英文,如果觉得用英文无法清楚描述,可以使用中文) | ||
- type: textarea | ||
attributes: | ||
label: Details(细节) | ||
description: Please describe your feature request in detail. (请详细描述您的功能请求。) | ||
|
||
- type: textarea | ||
attributes: | ||
label: Motivation(动机) | ||
description: Please describe your motivation in the feature request. (请描述您在功能请求中的动机。) | ||
placeholder: > | ||
Please describe your motivation in the feature request. (请描述您在功能请求中的动机。) | ||
- type: checkboxes | ||
attributes: | ||
label: Are you willing to submit a PR?(你愿意提交PR吗?) | ||
description: > | ||
This is absolutely not required, but we are happy to guide you in the contribution process | ||
especially if you already have a good understanding of how to implement the fix. | ||
(这不是必须的,但是我们很高兴您能够提交PR) | ||
options: | ||
- label: Yes I am willing to submit a PR!(是的我愿意) | ||
|
||
|
||
|
||
- type: markdown | ||
attributes: | ||
value: "Thanks for completing our form!(感谢填写表单!)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Improvement request (提升请求) | ||
description: Suggest an improvement for this project (给WTF-Solidity提一个改进提升的请求) | ||
title: "[Improvement][Module Name(模块名称)] Title(标题)" | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
For better global communication, Please write in English. | ||
If you feel the description in English is not clear, then you can use Chinese, thanks! | ||
(为了更好的全球化的交流,请使用英文,如果觉得用英文无法清楚描述,可以使用中文) | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: A short description why your find in our document.(简短的描述一下) | ||
|
||
|
||
- type: checkboxes | ||
attributes: | ||
label: Are you willing to submit a PR?(你愿意提交PR吗?) | ||
description: > | ||
This is absolutely not required, but we are happy to guide you in the contribution process | ||
especially if you already have a good understanding of how to implement the fix. | ||
(这不是必须的,但是我们很高兴您能够提交PR) | ||
options: | ||
- label: Yes I am willing to submit a PR!(是的我愿意) | ||
|
||
- type: markdown | ||
attributes: | ||
value: "Thanks for completing our form!(感谢填写表单!)" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.21; | ||
|
||
import "./DeleteContract.sol"; | ||
|
||
contract DeployContract { | ||
|
||
struct DemoResult { | ||
address addr; | ||
uint balance; | ||
uint value; | ||
} | ||
|
||
constructor() payable {} | ||
|
||
function getBalance() external view returns(uint balance){ | ||
balance = address(this).balance; | ||
} | ||
|
||
function demo() public payable returns (DemoResult memory){ | ||
DeleteContract del = new DeleteContract{value:msg.value}(); | ||
DemoResult memory res = DemoResult({ | ||
addr: address(del), | ||
balance: del.getBalance(), | ||
value: del.value() | ||
}); | ||
del.deleteContract(); | ||
return res; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.