Skip to content

Commit

Permalink
Update dependencies and add development files for release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
b3hr4d committed Feb 25, 2024
1 parent 224052d commit 24789fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
body: "https://github.com/B3Pay/ic-reactor/releases/download/v${{ env.CORE_VERSION }}/ic-reactor-core.min.js"
files: |
./packages/core/umd/production/ic-reactor-core.min.js
./packages/core/umd/development/ic-reactor-core.js
./packages/core/umd/development/ic-reactor-core.js.map
draft: false
prerelease: false
generate_release_notes: true
7 changes: 4 additions & 3 deletions examples/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ <h1>ICRC Token</h1>
</fieldset>
</div>

<script src="https://github.com/B3Pay/ic-reactor/releases/download/1.0.8/ic-reactor-core.min.js"></script>
<!-- <script src="../../packages/core/umd/development/ic-reactor-core.js"></script> -->
<!-- <script src="https://github.com/B3Pay/ic-reactor/releases/download/v1.1.0/ic-reactor-core.js"></script> -->
<script src="../../packages/core/umd/development/ic-reactor-core.js"></script>
<script>
const agentManager = Reactor.createAgentManager({ withDevtools: true })
const candidAdapter = Reactor.createCandidAdapter({ agentManager })
Expand Down Expand Up @@ -174,6 +174,7 @@ <h1>ICRC Token</h1>
agentManager,
canisterId,
idlFactory,
withDevtools: true
})

previousActorCleanup = reactorCore.cleanup
Expand Down Expand Up @@ -266,7 +267,7 @@ <h1>ICRC Token</h1>
transferForm.addEventListener("submit", (event) => {
event.preventDefault()

const owner = Principal.fromText(event.target.elements.to.value)
const owner = Reactor.utils.Principal.fromText(event.target.elements.to.value)
const amount = BigInt(event.target.elements.amount.value)

transferCall([
Expand Down
2 changes: 1 addition & 1 deletion examples/html/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>Authenticate and Fetch Data from the ICP blockchain</h1>
<div id="canisterData"></div>

<!-- ic-reactor-core UMD build -->
<script src="https://github.com/B3Pay/ic-reactor/releases/download/1.0.8/ic-reactor-core.min.js"></script>
<script src="https://github.com/B3Pay/ic-reactor/releases/download/1.1.0/ic-reactor-core.min.js"></script>
<script>
const loginBtn = document.getElementById('loginBtn');
const userInfo = document.getElementById('userInfo');
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export * from "./helper"
export * from "./constants"
export { IDL } from "@dfinity/candid"
export { Principal } from "@dfinity/principal"

0 comments on commit 24789fd

Please sign in to comment.