Skip to content

Commit

Permalink
chore(gnovm): add missing packages to stdlibWhitelist (gnolang#1677)
Browse files Browse the repository at this point in the history
## Description

While I was working the
[JSON](gnolang#1415), @harry-hov requested
to update the package list. After checking, I noticed that multiple
packages were absent from the list, so I include them.

However, I omitted the testing package, as it appeared to be managed
independently.
  • Loading branch information
notJoon authored and leohhhn committed Feb 29, 2024
1 parent 0ae1876 commit 7025301
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gnovm/pkg/gnolang/precompile.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,36 @@ var stdlibWhitelist = []string{
"context",
"crypto/md5",
"crypto/sha1",
"crypto/chacha20",
"crypto/cipher",
"crypto/sha256",
"encoding/base64",
"encoding/binary",
"encoding/hex",
"encoding/json",
"encoding/xml",
"errors",
"hash",
"hash/adler32",
"internal/bytealg",
"internal/os",
"flag",
"fmt",
"io",
"io/util",
"math",
"math/big",
"math/bits",
"math/rand",
"net/url",
"path",
"regexp",
"sort",
"strconv",
"strings",
"text/template",
"time",
"unicode",
"unicode/utf8",

// gno
Expand Down

0 comments on commit 7025301

Please sign in to comment.