Skip to content

Commit 74ce9c3

Browse files
authored
Merge branch 'main' into txwait
2 parents 6026203 + a4b93f3 commit 74ce9c3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Up-to-date documentation on Chainlink Functions can be found [here](https://docs
3232
- [Decoding Response Bytes](#decoding-response-bytes)
3333
- [Storing Encrypted Secrets in Gists](#storing-encrypted-secrets-in-gists)
3434
- [Building Functions Request CBOR Bytes](#building-functions-request-cbor-bytes)
35+
- [Browser use](#browser-use)
3536

3637
# Prerequisites
3738

@@ -694,3 +695,7 @@ const functionsRequestBytesHexString: string = buildRequestCBOR({
694695
bytesArgs?: string[] // Array of bytes arguments, represented as hex strings
695696
})
696697
```
698+
699+
700+
## Browser use
701+
This package can also be used in most modern web browsers. You can import the package in your front-end application, and call the APIs as you would in a back end NodeJs/Deno environment.

src/simulateScript/safePow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const isOdd = (value: bigint): boolean => value % BigInt(2) === BigInt(1)
4141
* - `Math.pow`, which doesn't currently support BigInts.
4242
* - `**` operator which might get transpiled to Math.pow by browser VM or build tools like swc.
4343
*
44-
* Method supports integer numbes and bigints.
44+
* Method supports integer numbers and bigints.
4545
*/
4646
export const safePow = (base: bigint | number, exponent: bigint | number): bigint => {
4747
let result = BigInt(1)

0 commit comments

Comments
 (0)