diff --git a/examples/template/src/index.js b/examples/template/src/index.js index 978cd66b5..880339b90 100644 --- a/examples/template/src/index.js +++ b/examples/template/src/index.js @@ -1,4 +1,4 @@ -import {NearContract, NearBindgen, call, view} from 'near-sdk-js' +import {NearContract, NearBindgen, near, call, view} from 'near-sdk-js' import {isUndefined} from 'lodash-es' @NearBindgen diff --git a/src/api.js b/src/api.js index b3cc51f5c..f25fa43fd 100644 --- a/src/api.js +++ b/src/api.js @@ -2,7 +2,7 @@ const U64_MAX = 2n**64n - 1n const EVICTED_REGISTER = U64_MAX - 1n export function log(message) { - near.log(message) + env.log(message) } export function signerAccountId() {