From 897efb493e256747ba92edc8bf2ee186b0e05dfc Mon Sep 17 00:00:00 2001 From: cyl19970726 <15258378443@163.com> Date: Mon, 27 Feb 2023 18:29:02 +0800 Subject: [PATCH] fix bug about store file to ethstorage without taking storage-token --- contracts/v3/Hubv3.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/v3/Hubv3.sol b/contracts/v3/Hubv3.sol index 0b063f5..3f4f919 100644 --- a/contracts/v3/Hubv3.sol +++ b/contracts/v3/Hubv3.sol @@ -269,7 +269,7 @@ contract Hubv3 is AccessControlEnumerable, Initializable { bytes memory path, bytes calldata data ) external payable { - return db.upload(repoName, path, data); + return db.upload{value:msg.value}(repoName, path, data); } function uploadChunk( @@ -278,7 +278,7 @@ contract Hubv3 is AccessControlEnumerable, Initializable { uint256 chunkId, bytes calldata data ) external payable { - return db.uploadChunk(repoName, path,chunkId, data); + return db.uploadChunk{value:msg.value}(repoName, path,chunkId, data); } function batchUpload(