[#48] container: Don't invoke frostfsid contract

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
feature/add_iterator_chains
Denis Kirillov 2023-11-07 14:20:03 +03:00
parent 8affa716e0
commit 501b0c5e3c
2 changed files with 0 additions and 6 deletions

View File

@ -13,7 +13,6 @@ safemethods:
- "version" - "version"
permissions: permissions:
- methods: - methods:
- "addKey"
- "addRecord" - "addRecord"
- "deleteRecords" - "deleteRecords"
- "register" - "register"

View File

@ -191,7 +191,6 @@ func PutNamed(container []byte, signature interop.Signature,
ownerID := ownerFromBinaryContainer(container) ownerID := ownerFromBinaryContainer(container)
containerID := crypto.Sha256(container) containerID := crypto.Sha256(container)
frostfsIDContractAddr := storage.Get(ctx, frostfsIDContractKey).(interop.Hash160)
cnr := Container{ cnr := Container{
value: container, value: container,
sig: signature, sig: signature,
@ -264,10 +263,6 @@ func PutNamed(container []byte, signature interop.Signature,
storage.Put(ctx, key, domain) storage.Put(ctx, key, domain)
} }
if len(token) == 0 { // if container created directly without session
contract.Call(frostfsIDContractAddr, "addKey", contract.All, ownerID, [][]byte{publicKey})
}
runtime.Log("added new container") runtime.Log("added new container")
runtime.Notify("PutSuccess", containerID, publicKey) runtime.Notify("PutSuccess", containerID, publicKey)
} }