Skip to content

Commit

Permalink
[blank project] fix some errors in blank project
Browse files Browse the repository at this point in the history
  • Loading branch information
janedegtiareva committed Mar 22, 2019
1 parent 5da6f22 commit a3b0510
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blank_project/assembly/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ import { Greeter } from "./model.near";

export function hello(): string {
let greeter = new Greeter("Hello");
return greeter.greet(context.sender);
return greeter.greet("world");
}
// << hello-snippet
4 changes: 2 additions & 2 deletions blank_project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"test": "jest test --env=./local_test_environment.js"
},
"devDependencies": {
"assemblyscript": "github:nearprotocol/assemblyscript.git#wasm-new-read-api",
"assemblyscript": "github:nearprotocol/assemblyscript.git",
"gulp": "^3",
"assemblyscript-json": "github:nearprotocol/assemblyscript-json",
"jest-environment-node": "^24.5.0",
"near-runtime-ts": "github:nearprotocol/near-runtime-ts#wasm-new-read-api",
"near-runtime-ts": "github:nearprotocol/near-runtime-ts",
"near-shell": "0.0.10"
},
"wasmStudio": {
Expand Down
2 changes: 1 addition & 1 deletion blank_project/src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("Greeter", function() {

it("get hello message", async function() {
const result = await contract.hello();
expect(result).toBe("Hello, " + accountId);
expect(result).toBe("Hello, world");
});
});
});
Expand Down

0 comments on commit a3b0510

Please sign in to comment.