【问题反馈】【SDK】本地使用java-sdk调用dpos-erc20合约报owenr错误,windos和mac还不一样
【问题分类】
- [-] SDK相关
【问题描述】(请对问题进行描述,方便定位问题)
本地使用java-sdk调用dpos-erc20合约报owenr错误,windos和mac还不一样
代码实现如下:
@Test public void testErc20ContractMint() { Map<String, byte[]> params = new HashMap<>(); params.put("value", String.valueOf(99999).getBytes()); params.put("to", "6CeSsjU5M62Ee3Gx9umUX6nXJoaBkWYufQdTZqEJM5di".getBytes()); ResultOuterClass.TxResponse responseInfo = null; try { System.out.println("签名公钥="+new String(chainClient.getClientUser().getPukBytes())); responseInfo = chainClient.invokeSystemContract(SystemContractOuterClass.SystemContract.DPOS_ERC20.toString(), DposErc20.DPoSERC20Function.MINT.toString(), null, params, rpcCallTimeout, syncResultTimeout); } catch (SdkException e) { e.printStackTrace(); Assert.fail(e.getMessage()); } System.out.println("结果="+responseInfo); Assert.assertNotNull(responseInfo); } }
【相关日志文件】(如果有报错日志请贴图,或者上传附件)
mac电脑报错误信息为 message: "OK" contract_result { code: 1 message: "contract[DPOS_ERC20]'s owner is not sender, owner[GcDmDby798D4Z9bN7spzNKCuEqkCncxebGfJpkVNqN5z] sender[EXcm6mK1jjZf4aipkzD8jFVrK1eV19nLvNwwhBM7GAD3]" }
windows报错信息为 message: "contract[DPOS_ERC20]'s owner is not sender, owner[GcDmDby798D4Z9bN7spzNKCuEqkCncxebGfJpkVNqN5z] sender[BDReq3FdSBaee894MPzontKkSssBmqa7hxvpeZtWPWyn]" } SDK 的 sdk.log file
【系统信息】(请填写系统信息,方便定位问题)
-
chainmaker-go version * : [v2.1.0]
-
OS & version * :
-
使用的chainClient SignKey为
-
------BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAr+ipNX7t+ifZ3ipqAaHU8n+tLlqk4RLa2yZv9xqUP0yowKEV c9hU9feByONf1e47Oizj8E8bX+Ov+IZxUO0tqSjKjIQuvWYOLUWuwTdxVF4HofoR bcGuOFaMa+tnhKREx1taVVwFCucm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KBgAnl/U/wjSIyijD6S65U8l1H7u/rbLwoAQ6cNmrz TRJKuxGvAI+anCIWjqnyu81LDHnWgePVqibnmwHq818NOtT4CnTAty9sRSXY15Za CQ3bNtzDXPkUfnBovCpVgvs+Z8tSfWmp9FZT/ZxW3Bnk6JRr6GTCCtWPTv9Soivp oJ3JAoGBAImvbfsODdUQlWoZp+bPmRr605Hq9Fg5bCmt4LYzTYCICoIOVUK1IkAo cvwSbdi+ibrByfSpWSsZHA47kM91LcDK2gM/ccpOL503dOe5CxAB6vGROND0z67P deKOS06GTjveUL8BBpOXOAs8bXtf4H8nStaoL8PayNpAvEGM77+Z -----END RSA PRIVATE KEY-----
-
-----BEGIN PUBLIC KEY----- MIIBCgKCAQEAr+ipNX7t+ifZ3ipqAaHU8n+tLlqk4RLa2yZv9xqUP0yowKEVc9hU 9feByONf1e47Oizj8E8bX+Ov+IZxUO0tqSjKjIQuvWYOLUWuwTdxVF4HofoRbcGu OFaMa+tnhKREx1taVVwFCucmpEPYTuFO3Kkfms5GF7ThQLcF/guhYhY74QIK/8lS tvcTrzR3161StVpG/g33NW+L1hq52BtE2IbMvGC+3YE3CItRLkjuWBemrIcBGRGr W+TNLS8S8B5iSk3w2U8tjAmTY/IbWRYIwCkhrXQeg5qMkbTSuGgli1MLPtjIvBmB 0DSSg2sNOhDA/UdNhQ/kz4DM2ZF8Al1ypwIDAQAB -----END PUBLIC KEY-----
-
地址为 GcDmDby798D4Z9bN7spzNKCuEqkCncxebGfJpkVNqN5z