use of com.hederahashgraph.api.proto.java.ResponseCodeEnum.INVALID_ZERO_BYTE_IN_STRING in project hedera-services by hashgraph.
the class FileUpdateSuite method vanillaUpdateSucceeds.
private HapiApiSpec vanillaUpdateSucceeds() {
final byte[] old4K = randomUtf8Bytes(BYTES_4K);
final byte[] new4k = randomUtf8Bytes(BYTES_4K);
final String firstMemo = "Originally";
final String secondMemo = "Subsequently";
return defaultHapiSpec("VanillaUpdateSucceeds").given(fileCreate("test").entityMemo(firstMemo).contents(old4K)).when(fileUpdate("test").entityMemo(ZERO_BYTE_MEMO).contents(new4k).hasPrecheck(INVALID_ZERO_BYTE_IN_STRING), fileUpdate("test").entityMemo(secondMemo).contents(new4k)).then(getFileContents("test").hasContents(ignore -> new4k), getFileInfo("test").hasMemo(secondMemo));
}
Aggregations