Skip to content

Commit

Permalink
Merge pull request AztecProtocol#142 from joss-aztec/jcf/fix_element_…
Browse files Browse the repository at this point in the history
…get_present_value

Jcf/fix element get present value
  • Loading branch information
PhilWindle authored Jul 4, 2022
2 parents 62547f7 + 9512bd5 commit 00874b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"rootDir": "./src"
},
"name": "@aztec/bridge-clients",
"version": "0.1.48",
"version": "0.1.49",
"description": "This repo contains the solidity files and typescript helper class for all of the Aztec Connect Bridge Contracts",
"repository": "[email protected]:AztecProtocol/aztec-connect-bridges.git",
"license": "MIT",
Expand Down
4 changes: 1 addition & 3 deletions src/client/element/element-bridge-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ export class ElementBridgeData implements BridgeDataFieldGetters {
}

private async getCurrentBlock() {
const currentBlockNumber = await this.elementBridgeContract.provider.getBlockNumber();
const currentBlock = await this.elementBridgeContract.provider.getBlock(currentBlockNumber);
return currentBlock;
return this.elementBridgeContract.provider.getBlock("latest");
}

private async findDefiEventForNonce(interactionNonce: bigint) {
Expand Down

0 comments on commit 00874b6

Please sign in to comment.