Skip to content

Commit e6e9eb3

Browse files
committed
Fix bugs on blockNumber param of getRegularKey() and getRegularKeyOwner()
1 parent 4b8690b commit e6e9eb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rpc/chain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class ChainRpc {
238238
this.rpc
239239
.sendRpcRequest("chain_getRegularKey", [
240240
`${PlatformAddress.ensure(address).value}`,
241-
blockNumber || null
241+
blockNumber
242242
])
243243
.then(result => {
244244
try {
@@ -279,7 +279,7 @@ export class ChainRpc {
279279
this.rpc
280280
.sendRpcRequest("chain_getRegularKeyOwner", [
281281
`0x${H512.ensure(regularKey).value}`,
282-
blockNumber || null
282+
blockNumber
283283
])
284284
.then(result => {
285285
try {

0 commit comments

Comments
 (0)