mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-11-29 18:28:27 +08:00
fix: 修正转账相关的api测试例
This commit is contained in:
parent
4b21c59e7f
commit
8f57171a9e
@ -30,12 +30,12 @@
|
||||
}
|
||||
</iptArgs>
|
||||
<timeout>0</timeout>
|
||||
<legal_prose>""</legal_prose>
|
||||
<code>""</code>
|
||||
<legal_prose></legal_prose>
|
||||
<code></code>
|
||||
<codeType>2</codeType>
|
||||
<state>true</state>
|
||||
<gasLimited>0</gasLimited>
|
||||
<oid>""</oid>
|
||||
<oid></oid>
|
||||
<runType>0</runType>
|
||||
<stateType>0</stateType>
|
||||
<contractLevel>1</contractLevel>
|
||||
|
@ -18,20 +18,25 @@
|
||||
<!--该用例主要是测试错误转账(目标账户不存在),并验证返回值-->
|
||||
|
||||
<CSpec>
|
||||
<stype>2</stype>
|
||||
<chaincodename>ContractAssetsTPL</chaincodename>
|
||||
<chaincodeversion>1</chaincodeversion>
|
||||
<methodType>2</methodType>
|
||||
<chainCodeName>ContractAssetsTPL</chainCodeName>
|
||||
<chainCodeVersion>1</chainCodeVersion>
|
||||
<iptFunc>transfer</iptFunc>
|
||||
<iptArgs>
|
||||
{
|
||||
"from" : "121000005l35120456",
|
||||
"to" : "121000005l35120457",
|
||||
"from" : "identity-net:121000005l35120456",
|
||||
"to" : "identity-net:121000005l35120457",
|
||||
"amount" : 5
|
||||
}
|
||||
</iptArgs>
|
||||
<timeout>0</timeout>
|
||||
<legal_prose></legal_prose>
|
||||
<code></code>
|
||||
<ctype>2</ctype>
|
||||
<codeType>2</codeType>
|
||||
<state>true</state>
|
||||
<gasLimited>0</gasLimited>
|
||||
<oid></oid>
|
||||
<runType>0</runType>
|
||||
<stateType>0</stateType>
|
||||
<contractLevel>1</contractLevel>
|
||||
</CSpec>
|
@ -18,20 +18,25 @@
|
||||
<!--该用例主要是测试错误转账(只能从本账户中转出),并验证返回值-->
|
||||
|
||||
<CSpec>
|
||||
<stype>2</stype>
|
||||
<chaincodename>ContractAssetsTPL</chaincodename>
|
||||
<chaincodeversion>1</chaincodeversion>
|
||||
<methodType>2</methodType>
|
||||
<chainCodeName>ContractAssetsTPL</chainCodeName>
|
||||
<chainCodeVersion>1</chainCodeVersion>
|
||||
<iptFunc>transfer</iptFunc>
|
||||
<iptArgs>
|
||||
{
|
||||
"from" : "121000005l35120457",
|
||||
"to" : "121000005l35120456",
|
||||
"from" : "identity-net:121000005l35120457",
|
||||
"to" : "identity-net:12110107bi45jh675g",
|
||||
"amount" : 5
|
||||
}
|
||||
</iptArgs>
|
||||
<timeout>0</timeout>
|
||||
<legal_prose></legal_prose>
|
||||
<code></code>
|
||||
<ctype>2</ctype>
|
||||
<codeType>2</codeType>
|
||||
<state>true</state>
|
||||
<gasLimited>0</gasLimited>
|
||||
<oid></oid>
|
||||
<runType>0</runType>
|
||||
<stateType>0</stateType>
|
||||
<contractLevel>1</contractLevel>
|
||||
</CSpec>
|
@ -18,20 +18,25 @@
|
||||
<!--该用例主要是测转账(自己给自己转账),并验证返回值-->
|
||||
|
||||
<CSpec>
|
||||
<stype>2</stype>
|
||||
<chaincodename>ContractAssetsTPL</chaincodename>
|
||||
<chaincodeversion>1</chaincodeversion>
|
||||
<methodType>2</methodType>
|
||||
<chainCodeName>ContractAssetsTPL</chainCodeName>
|
||||
<chainCodeVersion>1</chainCodeVersion>
|
||||
<iptFunc>transfer</iptFunc>
|
||||
<iptArgs>
|
||||
{
|
||||
"from" : "121000005l35120456",
|
||||
"to" : "121000005l35120456",
|
||||
"from" : "identity-net:121000005l35120456",
|
||||
"to" : "identity-net:121000005l35120456",
|
||||
"amount" : 5
|
||||
}
|
||||
</iptArgs>
|
||||
<timeout>0</timeout>
|
||||
<legal_prose></legal_prose>
|
||||
<code></code>
|
||||
<ctype>2</ctype>
|
||||
<codeType>2</codeType>
|
||||
<state>true</state>
|
||||
<gasLimited>0</gasLimited>
|
||||
<oid></oid>
|
||||
<runType>0</runType>
|
||||
<stateType>0</stateType>
|
||||
<contractLevel>1</contractLevel>
|
||||
</CSpec>
|
Loading…
Reference in New Issue
Block a user