Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

[tx] transact_builder is not type-checking input values #663

@ncalexan

Description

@ncalexan

It appears that transact_builder is not type-checking the provided values, so that, say:

builder.add(sl.clone(), in_progress.get_entid(&ATTR).expect("attr"), TypedValue::typed_string("test")).expect("to add");

and

builder.add(sl.clone(), in_progress.get_entid(&ATTR).expect("attr"), TypedValue::Keyword(kw!(:some/value).into())).expect("to add");

successfully transact. It's not clear to me where in the stack the error is:

  • is it that transact in general is not type checking correctly?
  • is it that transact_builder, which was added long after the initial transact implementation, is inserting itself into the stack after the type checking is expected to have been done?

In either case this is critical!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions