In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what is the method of pre-compilation of Bytom contract". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what is the method of pre-compilation of Bytom contracts"?
First of all, we need to make sure that we have a go language development environment and version 1.8.If we do not build a go language development environment, please do it yourself. Make sure that the versions supported by go are installed correctly:
$go version$ go env GOROOT GOPATH
Get the source code and compile it, refer to the link:
After compiling, we can execute it under equity:
. / equity/equity-- help
Get order help for the contract. The returned screenshot is as follows:
The symbol 1, 2, 3, 4 in the figure respectively represents the meaning of the parameters taken to execute the command. The instance parameter corresponding to figure 3 represents the instantiated contract, and the shift corresponding to 4 indicates the specific function in the specified execution contract. Then create a contract file under the project (preferably without any suffix), as shown below:
Then write the contract, I am the contract compiled in vim, you can choose to write the contract in vim or editor. If there are problems in the process of compiling the contract, please refer to the contract development documentation. The following picture shows the contract I wrote in vim.
After the contract has been written, if the contract is written incorrectly or there is a syntax error, the situation shown in the following figure will occur. Please check the contract you have written.
After checking, execute the contract file under the corresponding directory, and then you can output the binary shown in the following figure. It shows that the contract was written successfully.
At this point, I believe you have a deeper understanding of "what is the method of pre-compilation of Bytom contracts". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.