From f0c583f00c90e917d87b707b5b7a892ad0da916f Mon Sep 17 00:00:00 2001 From: Krishnanand V P <44740264+incrypto32@users.noreply.github.com> Date: Mon, 22 Apr 2024 21:00:43 +0400 Subject: [PATCH] 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 --- .changeset/proud-experts-fly.md | 5 +++++ packages/ts/chain/ethereum.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/proud-experts-fly.md diff --git a/.changeset/proud-experts-fly.md b/.changeset/proud-experts-fly.md new file mode 100644 index 000000000..a0970a702 --- /dev/null +++ b/.changeset/proud-experts-fly.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-ts': patch +--- + +Update return type for ethereum.hasCode diff --git a/packages/ts/chain/ethereum.ts b/packages/ts/chain/ethereum.ts index b850e58e3..f09dc4bbb 100644 --- a/packages/ts/chain/ethereum.ts +++ b/packages/ts/chain/ethereum.ts @@ -6,7 +6,7 @@ import { Address, BigInt } from '../common/numbers'; export declare namespace ethereum { function call(call: SmartContractCall): Array | null; function getBalance(address: Address): BigInt; - function hasCode(address: Address): bool; + function hasCode(address: Address): Wrapped; function encode(token: Value): Bytes | null; function decode(types: String, data: Bytes): Value | null; }