Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshaowei committed Aug 26, 2021
1 parent bd7ae47 commit cc1895f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/zh_CN/invoking contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@

下文将阐述如何对该合约进行编译、部署和调用。

开始前,您需要先将合约SBank.java、ISBank.java打成一个jar包,在`pom.xml`文件中配置`Main-Class`为SBank.java(合约主体类),再jar包放到`resources`文件夹中(也可放入其他路径)。
开始前,您需要先将合约SBank.java、ISBank.java打成一个jar包,在 `pom.xml` 文件中配置 `Main-Class` 为SBank.java(合约主体类),再jar包放到 `resources` 文件夹中(也可放入其他路径)。

首先创建一个HttpProvider的实例,然后创建账户,接着使用该实例去进行合约的编译、部署和调用。合约部署之后只能返回一个交易哈希,需要通过该哈希去查询交易结果,获得合约地址。合约地址是调用合约的一个必须选项。此外在进行方法调用之前需要将调用的方法及其参数进行编码,最后通过invoke方法进行具体的合约调用。

Expand Down
2 changes: 1 addition & 1 deletion docs/zh_CN/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ https://www.hyperchain.cn/products/hyperchain
domain = "domain1",
addrs = ["domain1 127.0.0.1:50014"]

**依次修改每个节点的 `configuration/global/ns_dynamic.toml`**
**依次修改每个节点的** `configuration/global/ns_dynamic.toml`

修改node1::

Expand Down

0 comments on commit cc1895f

Please sign in to comment.