We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When inserting values into a table, i expect it to error when adding extra properties that are not in the schema. For example:
In ponder.schema.ts :
ponder.schema.ts
export const token = onchainTable("token", (t) => ({ id: t.hex().primaryKey(), symbol: t.text(), name: t.text(), decimals: t.integer(), createdAtBlock: t.bigint(), createdAtTimestamp: t.bigint(), createdAtUTC: t.text(), }));
Then in my token.ts:
token.ts
const thisCanBeAnything = 420; await db .insert(token) .values({ id: address, name, symbol, decimals, createdAtBlock, createdAtTimestamp, createdAtUTC, thisCanBeAnything }) .onConflictDoNothing();
There is no error when adding thisCaBeAnything although there is no property for this in my schema.
thisCaBeAnything
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When inserting values into a table, i expect it to error when adding extra properties that are not in the schema. For example:
In
ponder.schema.ts
:Then in my
token.ts
:There is no error when adding
thisCaBeAnything
although there is no property for this in my schema.The text was updated successfully, but these errors were encountered: