Skip to content

Conversation

@dauphin3
Copy link
Collaborator

validation for RegisterCreateLink and RegisterDeleteLink

?TODO:
OpType -> FlatOP
op.to_type() -> op.flattened()

need to fix operations for checking leading LinkTag bytes (T + arrow symbol)

use hdk::prelude::agent_info;

const UNICODE_NUL_STR: &str = "\u{0}";
const UNICODE_T_CHAR: &str = "\u{0}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is null, not a T…

))),
};
},
Err(_) => return Err(wasm_error!(WasmErrorInner::Guest("LinkTag format error".to_string()))),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Err(_) => return Err(wasm_error!(WasmErrorInner::Guest("LinkTag format error".to_string()))),
Err(_) => return Err(wasm_error!("LinkTag format error: {}", e)),

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where e is the original error

@dauphin3 dauphin3 linked an issue Jun 2, 2023 that may be closed by this pull request
@dauphin3 dauphin3 self-assigned this Jun 21, 2023
@dauphin3 dauphin3 marked this pull request as ready for review June 22, 2023 08:53
dauphin3 and others added 6 commits July 3, 2024 16:02
validation

Co-authored-by: Zeek <zkringlwe@gmail.com>
Co-authored-by: Harlan T Wood <harlan@superluminal.is>
Co-authored-by: Zeek <zkringlwe@gmail.com>
Co-authored-by: Zeek <zkringlwe@gmail.com>
bucket validation check char count

Co-authored-by: Zeek <zkringlwe@gmail.com>
Co-authored-by: Zeek <zkringlwe@gmail.com>
@harlantwood harlantwood force-pushed the feature/validation branch from 8b4b274 to f8e5f46 Compare July 4, 2024 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

on delete, validate that actionhash is a link create

3 participants