Skip to content

Commit f0c583f

Browse files
incrypto32saihaj
andauthored
Update return type for ethereum.hasCode (#1637)
* update return type for ethereum.hasCode * add changeset * Apply suggestions from code review --------- Co-authored-by: Saihajpreet Singh <[email protected]>
1 parent b309744 commit f0c583f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/proud-experts-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-ts': patch
3+
---
4+
5+
Update return type for ethereum.hasCode

packages/ts/chain/ethereum.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Address, BigInt } from '../common/numbers';
66
export declare namespace ethereum {
77
function call(call: SmartContractCall): Array<Value> | null;
88
function getBalance(address: Address): BigInt;
9-
function hasCode(address: Address): bool;
9+
function hasCode(address: Address): Wrapped<bool>;
1010
function encode(token: Value): Bytes | null;
1111
function decode(types: String, data: Bytes): Value | null;
1212
}

0 commit comments

Comments
 (0)