Skip to content

Commit

Permalink
v1.4.15-beta.27
Browse files Browse the repository at this point in the history
  • Loading branch information
asiaziola committed Aug 8, 2023
1 parent b63bd69 commit b94c7ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "warp-contracts",
"version": "1.4.15-rc.4",
"version": "1.4.15-beta.27",
"description": "An implementation of the SmartWeave smart contract protocol.",
"types": "./lib/types/index.d.ts",
"main": "./lib/cjs/index.js",
Expand Down Expand Up @@ -123,7 +123,7 @@
"warp-contracts-plugin-deploy": "1.0.8",
"warp-contracts-plugin-vm2": "1.0.1",
"warp-contracts-plugin-vrf": "^1.0.3",
"warp-contracts-sqlite": "^1.0.2",
"warp-contracts-sqlite": "1.0.3-beta.9",
"ws": "^8.11.0"
},
"resolutions": {
Expand Down
11 changes: 3 additions & 8 deletions src/contract/HandlerBasedContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,14 +636,9 @@ export class HandlerBasedContract<State> implements Contract<State> {
}

private async fetchRemoteContractState(contractId: string): Promise<DREContractStatusResponse<State> | null> {
return this._warpFetchWrapper
.fetch(`${this._evaluationOptions.remoteStateSyncSource}?id=${contractId}&events=false`)
.then((res) => {
return res.ok ? res.json() : Promise.reject(res);
})
.catch((error) => {
throw new Error(`Unable to read contract state from DRE. ${error.status}. ${error.body?.message}`);
});
return getJsonResponse(
this._warpFetchWrapper.fetch(`${this._evaluationOptions.remoteStateSyncSource}?id=${contractId}&events=false`)
);
}

private getToSortKey(upToSortKey?: string) {
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2553,7 +2553,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9"
integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==

better-sqlite3@^8.3.0, better-sqlite3@^8.5.0:
better-sqlite3@^8.5.0:
version "8.5.0"
resolved "https://registry.yarnpkg.com/better-sqlite3/-/better-sqlite3-8.5.0.tgz#b13d12d0e477be69191a39628fc8b723ee1c79d4"
integrity sha512-vbPcv/Hx5WYdyNg/NbcfyaBZyv9s/NVbxb7yCeC5Bq1pVocNxeL2tZmSu3Rlm4IEOTjYdGyzWQgyx0OSdORBzw==
Expand Down Expand Up @@ -7658,12 +7658,12 @@ warp-contracts-plugin-vrf@^1.0.3:
"@idena/vrf-js" "^1.0.1"
elliptic "^6.5.4"

warp-contracts-sqlite@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/warp-contracts-sqlite/-/warp-contracts-sqlite-1.0.2.tgz#f690f3ad5832b8522baed2420437d1aa5214bab1"
integrity sha512-mBDTfexgBTEeUhddC3P438y03T4mEfDadzC32cyYOE8jQE1wfYF3GTFhTkz0eT+Z5o+DAT+4Ed+2Mxk5BSQMmw==
[email protected].3-beta.9:
version "1.0.3-beta.9"
resolved "https://registry.yarnpkg.com/warp-contracts-sqlite/-/warp-contracts-sqlite-1.0.3-beta.9.tgz#e4d4f052364721a7c7bde2007bb250761060c48e"
integrity sha512-anJ+jjUWWmlDKTq0xNimh+qsbCJmJOb5+c+CffqG2qETvLXDOC5FPxFQBlccsJ46eJnhOXlgvpOADEl5hxrJ9Q==
dependencies:
better-sqlite3 "^8.3.0"
better-sqlite3 "^8.5.0"
safe-stable-stringify "^2.4.3"

[email protected]:
Expand Down

0 comments on commit b94c7ce

Please sign in to comment.