从Kt1地址委托锁定我的硬币,我该如何解决?
-
-
您能说明发起呼叫是正确的吗,因为您似乎是从相同的别名转移到要创建的合同中,这不起作用can you clarify your origination call is correct, as it seems like you are transferring from the same alias you are giving to the contract to be created which shouldn't work
- 0
- 2019-12-01
- cousinit
-
然后与tezos-client发起了一个智能合约,发起了智能合约2,从运行" $(catmanager.tz)"的k1转移了4633 –init'"tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY"'--burn-cap 0.489Then initiated a smart contract with tezos-client originate contract mack-2 transferring 4633 from k1 running "$(cat manager.tz)" --init '"tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY"' --burn-cap 0.489
- 0
- 2019-12-01
- Mack Baise
-
您创建的新合同的地址是什么,您是否通过更好的呼叫开发人员或其他工具查询了它,以查看它是否按预期创建what is the address of the new contract you created, have you looked it up on better call dev or some other tool to see if it was created as you expected
- 0
- 2019-12-01
- cousinit
-
因此,当我尝试从Kt1地址发送硬币时,我得到"tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY的未知密钥",然后当我使用" ./tezos-client忘记地址抵押业务"删除tz1地址并尝试转移硬币时,错误是"否"源合同经理的钥匙"So when I try to send coins from the Kt1 address I get "Unknown secret key for tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY", then when I remove the tz1 address with "./tezos-client forget address stakingfacilities" and try to transfer the coins the error is "no keys for the source contract manager"
- 0
- 2019-12-01
- Mack Baise
-
有没有办法完全取消智能合约?Is there a way to completely cancel the smart contract?
- 0
- 2019-12-01
- Mack Baise
-
一旦创建,您将无法取消或修改智能合约you can not cancel or modify a smart contract once created
- 0
- 2019-12-01
- cousinit
-
目前尚不清楚您要创建的内容,需要查看链上的内容来决定如何解决您的问题it is not clear what you were trying to create, need to see what it looks like onchain to decide how to resolve your issue
- 0
- 2019-12-01
- cousinit
-
这是原始哈希KT1VSiaepk9USGAHDjJQAm4aaYRC6J8dTBHG,原始帐户tz1b7YSEeNRqgmjuX4d4aiai2sQTF4A7WBZfHere is the public hash KT1VSiaepk9USGAHDjJQAm4aaYRC6J8dTBHG, originating account tz1b7YSEeNRqgmjuX4d4aiai2sQTF4A7WBZf
- 0
- 2019-12-01
- Mack Baise
-
1 个回答
- 投票数
-
- 2019-12-01
您创建了一个合同,该合同只能在收到其发起人指定的"经理"帐户的调用后才能转移资金,这是该合同在其存储中的唯一价值.
可以在此处查看合同 https://better-call.dev/main/KT1VSiaepk9USGAHDjJJQAm4aaYRC/operations
您可以看到该存储具有值tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY,因为这是您在提交的原始--init中提供的.您指定的合同代码仅允许存储帐户中的帐户调用转账资金.
这意味着您必须使用tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY的密钥对呼叫进行签名.如果您不拥有该钥匙,则需要让该钥匙的持有人有效地代您致电,他们现在可以控制您所创建合约中的资金.
最佳做法是仅创建一笔金额为0或最低转账的此类合约,然后在转入额外资金之前对其进行测试.
You created a contract which can only transfer funds when it receives a call to do so from its "manager" account which was specified at origination and is the only value the contract has in its storage.
The contract can be seen here https://better-call.dev/main/KT1VSiaepk9USGAHDjJQAm4aaYRC6J8dTBHG/operations
You can see that the storage has the value tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY as that is what you provided in the --init of the origination you submitted. The code of the contract you specified only allows the contract to transfer funds when called to do so by the account in storage.
This means you must sign the call with the secret key for tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY. If you don't possess that key then you need to get the holder of that key to make the call for you as effectively they now are in control of the funds in the contract you created.
Best practice would be to only create such contracts with a 0 or minimal transfer to test them before transferring in additional funds.
-
哦,当...希望我能解决这个问题.我会给他们留言.Oh dang... hope I can get this figured out then. I'll send them a message.
- 0
- 2019-12-01
- Mack Baise
-
在Tezos堆栈交换中给我指示的那个家伙告诉我使用--init参数指定面包师....https://tezos.stackexchange.com/questions/1803/how-do-you-create-次级kt1-您的tz地址下的接触/1805#1805The guy who gave me directions in the Tezos stack exchange told me to use the --init parameter to specify a baker.... https://tezos.stackexchange.com/questions/1803/how-do-you-create-a-secondary-kt1-contact-under-your-tz-address/1805#1805
- 0
- 2019-12-01
- Mack Baise
-
这是否意味着他们可以导入KT1地址,然后将资金退回?Does that mean they can import the KT1 address then send the funds back?
- 0
- 2019-12-01
- Mack Baise
-
我不确定他们是否可以将呼叫发送到" do"入口点,而不必同时是合同的实际管理者.您应该搜索,如果没有找到,请问一个问题,例如"如何格式化manager.tz合约上对" do"入口点的调用,以便将资金转移到帐户X",因为这是他们所需要的为你做.I'm not certain if they can send the call to the "do" entry point without also being the actual manager of the contract. You should search for and if you don't find ask a question such as "How to format the call to the "do" entry point on manager.tz contracts in order to transfer funds to account X" As that is what they will need to do for you.
- 0
- 2019-12-01
- cousinit
-
疯狂,我希望硬币不会卡在边缘地区crazy, I hope the coins aren't stuck in limboland
- 0
- 2019-12-01
- Mack Baise
-
好的,看来他们可以导入合同.我最后做了一个测试,结果很好.Ok, looks like they can just import the contract. I did a test on my end and it worked out fine....
- 0
- 2019-12-01
- Mack Baise
可能在这里很混乱,但是我通过命令行添加了一个地址 ./tezos-client添加地址分配工具tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY
(适用于德国的面包店)
然后与 tezos-client发起合同k1从k1转移4633 运行" $(catmanager.tz)" --init'"tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY"'--burn-cap 0.489
现在,当我尝试移动tezos时, ./tezos-client传输1从k1到mack-2
我收到错误消息"tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY的未知密钥"
您知道如何取消智能合约或删除资金吗?交易不适用于Galleon或Tezbox ...