Skip to content

用 web3 box 上传一个文件,需要 approve 9 次?! #162

Answered by qzhodl
linghuccc asked this question in Q&A
Discussion options

You must be logged in to vote

是文件比较大吗?因为transaction携带calldata大小的限制,每次最多只能上传接近24KB大小的数据,如果文件超过这个大小,就需要把文件切片成多个chunk,分多个transaction上传。
合约的代码在这里:https://github.com/ethstorage/w3box/tree/main/contracts

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by linghuccc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants