This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import * as Encoder from "..";
9
9
import * as Codec from "@truffle/codec" ;
10
10
import { Shims } from "@truffle/compile-common" ;
11
11
import type { ContractObject as Artifact } from "@truffle/contract-schema/spec" ;
12
- import * as Abi from "@truffle/abi-utils" ;
13
12
import Ganache from "ganache" ;
14
13
import type { Provider } from "web3/providers" ;
15
14
@@ -61,23 +60,17 @@ beforeAll(async () => {
61
60
describe ( "Encoding" , ( ) => {
62
61
describe ( "Constructors" , ( ) => {
63
62
let encoder : Encoder . ContractEncoder ;
64
- let abi : Abi . ConstructorEntry ;
65
63
let bytecode : string ;
66
64
67
65
beforeAll ( async ( ) => {
68
66
encoder = await Encoder . forArtifact ( artifacts . TestContract , {
69
67
projectInfo : { compilations }
70
68
} ) ;
71
- abi = < Abi . ConstructorEntry > (
72
- Abi . normalize ( artifacts . TestContract . abi ) . find (
73
- entry => entry . type === "constructor"
74
- )
75
- ) ;
76
69
bytecode = Shims . NewToLegacy . forBytecode ( artifacts . TestContract . bytecode ) ;
77
70
} ) ;
78
71
79
72
it ( "Encodes constructors" , async ( ) => {
80
- const { data } = await encoder . encodeTxNoResolution ( abi , [ 1 ] ) ;
73
+ const { data } = await encoder . encodeCreation ( [ 1 ] ) ;
81
74
assert . strictEqual (
82
75
data ,
83
76
bytecode +
You can’t perform that action at this time.
0 commit comments