Skip to content

Commit

Permalink
Update return type for ethereum.hasCode (#1637)
Browse files Browse the repository at this point in the history
* update return type for ethereum.hasCode

* add changeset

* Apply suggestions from code review

---------

Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
  • Loading branch information
incrypto32 and saihaj committed Apr 22, 2024
1 parent b309744 commit f0c583f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/proud-experts-fly.md
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-ts': patch
---

Update return type for ethereum.hasCode
2 changes: 1 addition & 1 deletion packages/ts/chain/ethereum.ts
Expand Up @@ -6,7 +6,7 @@ import { Address, BigInt } from '../common/numbers';
export declare namespace ethereum {
function call(call: SmartContractCall): Array<Value> | null;
function getBalance(address: Address): BigInt;
function hasCode(address: Address): bool;
function hasCode(address: Address): Wrapped<bool>;
function encode(token: Value): Bytes | null;
function decode(types: String, data: Bytes): Value | null;
}
Expand Down

0 comments on commit f0c583f

Please sign in to comment.