无法在字符串类型的变量中存储超过255个字符 [英] Unable to store more than 255 characters in the variable of type string

查看:238
本文介绍了无法在字符串类型的变量中存储超过255个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在工作台中构建自定义用例,因为我想添加超过255个字符的字符串长度,但是天蓝色的区块链工作台不允许我这样做.我试图在资产转移示例中做同样的事情来复制并得到相同的错误 消息.

I am building custom usecase in workbench, in that i wanted to add string length of morethan 255 characters, but azure blockchain workbench didn't allow me to do that. i tried to do the same thing in asset transfer example to replicate and got same error message.

根据我的理解,我们可以存储任意长度的字符串,那么为什么工作台不支持该字符串?

As per my understanding, in solidity we can store string of any length, Then why workbench does not support that?

此外,我尝试使用邮递员访问API,并得到相同的错误.

Also, i tried hitting the API using postman, getting the same error.

谢谢

Srinivasan Sankaran

Srinivasan Sankaran

推荐答案

这是当前限制

但是,有一个建议"打开,如果您要进行此更改,则应对其进行投票:

However, there is a "Suggestion" open which you should vote on if you would like this changing:

https://feedback .azure.com/forums/586780-blockchain/suggestions/35066749-remove-255-max-length-limit-on-string-input


这篇关于无法在字符串类型的变量中存储超过255个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆