fix: 修正转账相关的api测试例

This commit is contained in:
brightestboy 2023-02-23 14:44:30 +08:00
parent 4b21c59e7f
commit 8f57171a9e
4 changed files with 36 additions and 21 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>