You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
` message from frontend but when I run the same function from cli, it is working fine.
sample Code:
Model.ts
@nearBindgen
export class Test
{ id: i32; borrowAmount: i64; updatedAt: u128; borrower: string; lender: string; isEntity: bool; }
part of function in Main.ts
let tests = new PersistentMap<i32, Test>("t:");
let test: Test =
{ id, borrowAmount, updatedAt, borrower,lender: Context.sender isEntity: true }
logging.log(test); // error line
tests.set(id, test);
I tried converting this model into a proper class format with constructor but it's still giving me same error.
The text was updated successfully, but these errors were encountered:
Hi,
I am getting `Error:
{ "index" : 0 }
` message from frontend but when I run the same function from cli, it is working fine.
sample Code:
Model.ts
part of function in Main.ts
I tried converting this model into a proper class format with constructor but it's still giving me same error.
The text was updated successfully, but these errors were encountered: