Skip to content

Commit

Permalink
fix: wasm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
asabya committed Nov 17, 2023
1 parent fe64cd6 commit 6622cc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func connect(_ js.Value, funcArgs []js.Value) interface{} {
handler := js.FuncOf(func(_ js.Value, args []js.Value) interface{} {
resolve := args[0]
reject := args[1]
if len(funcArgs) != 4 {
reject.Invoke("not enough arguments. \"connect(beeEndpoint, stampId, rpc, network)\" or \"connect(beeEndpoint, stampId, rpc, network, subRpc, subContractAddress)\"")
if len(funcArgs) != 6 {
reject.Invoke("not enough arguments. \"connect(beeEndpoint, stampId, rpc, network, subRpc, subContractAddress)\"")
return nil
}
beeEndpoint := funcArgs[0].String()
Expand Down

0 comments on commit 6622cc0

Please sign in to comment.